chore: 初始化项目,搭建Go后端、React前端与Neutralino桌面壳
This commit is contained in:
89
neutralino.config.json
Normal file
89
neutralino.config.json
Normal file
@@ -0,0 +1,89 @@
|
||||
{
|
||||
"$schema": "https://raw.githubusercontent.com/neutralinojs/neutralinojs/main/schemas/neutralino.config.schema.json",
|
||||
"applicationId": "com.lanyuanxiaoyao.nex",
|
||||
"version": "1.0.0",
|
||||
"defaultMode": "window",
|
||||
"port": 0,
|
||||
"documentRoot": "/frontend/",
|
||||
"url": "/",
|
||||
"enableServer": true,
|
||||
"enableNativeAPI": true,
|
||||
"enableExtensions": true,
|
||||
"exportAuthInfo": true,
|
||||
"tokenSecurity": "one-time",
|
||||
"logging": {
|
||||
"enabled": false,
|
||||
"writeToLogFile": false
|
||||
},
|
||||
"globalVariables": {},
|
||||
"modes": {
|
||||
"window": {
|
||||
"title": "",
|
||||
"width": 800,
|
||||
"height": 900,
|
||||
"minWidth": 500,
|
||||
"minHeight": 200,
|
||||
"fullScreen": false,
|
||||
"alwaysOnTop": false,
|
||||
"enableInspector": true,
|
||||
"borderless": false,
|
||||
"maximize": false,
|
||||
"hidden": false,
|
||||
"center": true,
|
||||
"useSavedState": false,
|
||||
"resizable": true,
|
||||
"exitProcessOnClose": true
|
||||
}
|
||||
},
|
||||
"cli": {
|
||||
"binaryName": "nex",
|
||||
"resourcesPath": "/frontend/dist",
|
||||
"extensionsPath": "/backend/",
|
||||
"binaryVersion": "6.7.0",
|
||||
"clientVersion": "6.7.0",
|
||||
"frontendLibrary": {
|
||||
"patchFile": "/frontend/index.html",
|
||||
"devUrl": "http://localhost:5173",
|
||||
"projectPath": "/frontend/",
|
||||
"initCommand": "bun install",
|
||||
"devCommand": "bun dev",
|
||||
"buildCommand": "bun run build",
|
||||
"waitTimeout": 20000
|
||||
}
|
||||
},
|
||||
"nativeAllowList": [
|
||||
"app.*",
|
||||
"os.*",
|
||||
"window.*",
|
||||
"events.*",
|
||||
"extensions.*",
|
||||
"debug.log"
|
||||
],
|
||||
"extensions": [
|
||||
{
|
||||
"id": "nex",
|
||||
"commandDarwin": "\"${NL_PATH}/backend/nex\" \"${NL_PATH}\"",
|
||||
"commandLinux": "\"${NL_PATH}/backend/nex\" \"${NL_PATH}\"",
|
||||
"commandWindows": "\"${NL_PATH}\\backend\\nex.exe\" \"${NL_PATH}\""
|
||||
}
|
||||
],
|
||||
"buildScript": {
|
||||
"mac": {
|
||||
"architecture": [
|
||||
"x64",
|
||||
"arm64"
|
||||
],
|
||||
"minimumOS": "10.13.0",
|
||||
"appName": "Nex",
|
||||
"appBundleName": "Nex",
|
||||
"appIdentifier": "com.lanyuanxiaoyao.nex",
|
||||
"appIcon": "icon.icns"
|
||||
},
|
||||
"win": {
|
||||
"architecture": [
|
||||
"x64"
|
||||
],
|
||||
"appName": "Nex.exe"
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user