diff --git a/build/extraResources/chromeExtension/read.txt b/build/extraResources/chromeExtension/read.txt deleted file mode 100644 index 57b4b84..0000000 --- a/build/extraResources/chromeExtension/read.txt +++ /dev/null @@ -1 +0,0 @@ -chrome应用商店ctx文件,解压后,放置在此目录中,打包时会将资源加入安装包内。 \ No newline at end of file diff --git a/electron/config/builder.json b/electron/config/builder.json new file mode 100644 index 0000000..c6a2799 --- /dev/null +++ b/electron/config/builder.json @@ -0,0 +1,55 @@ +{ + "productName": "ee", + "appId": "com.electron.ee", + "copyright": "哆啦好梦", + "directories": { + "output": "out" + }, + "asar": true, + "files": [ + "**/*", + "!frontend/", + "!run/", + "!logs/", + "!data/" + ], + "extraResources": { + "from": "./build/extraResources/", + "to": "extraResources" + }, + "nsis": { + "oneClick": false, + "allowElevation": true, + "allowToChangeInstallationDirectory": true, + "installerIcon": "./build/icons/icon.ico", + "uninstallerIcon": "./build/icons/icon.ico", + "installerHeaderIcon": "./build/icons/icon.ico", + "createDesktopShortcut": true, + "createStartMenuShortcut": true, + "shortcutName": "EE框架" + }, + "mac": { + "icon": "./build/icons/icon.icns", + "artifactName": "${productName}-${os}-${version}-${arch}.${ext}", + "darkModeSupport": true, + "hardenedRuntime": false, + "notarize": false + }, + "win": { + "icon": "./build/icons/icon.ico", + "artifactName": "${productName}-${os}-${version}-${arch}.${ext}", + "target": [ + { + "target": "nsis" + } + ] + }, + "linux": { + "icon": "./build/icons/icon.icns", + "artifactName": "${productName}-${os}-${version}-${arch}.${ext}", + "target": [ + "deb" + ], + "category": "Utility" + } +} \ No newline at end of file diff --git a/package.json b/package.json index 8257e14..1db3c7a 100644 --- a/package.json +++ b/package.json @@ -114,7 +114,7 @@ "dependencies": { "better-sqlite3": "^7.6.2", "dayjs": "^1.10.7", - "ee-core": "^2.2.2", + "ee-core": "^2.2.3-beta.1", "electron-updater": "^5.3.0", "lodash": "^4.17.21" }