更新优化
This commit is contained in:
+30
-4
@@ -5,11 +5,20 @@
|
||||
"main": "main.js",
|
||||
"scripts": {
|
||||
"start": "electron .",
|
||||
"build": "electron-builder",
|
||||
"encrypt:win": "scripts/encrypt/encrypt-electron-win.bat",
|
||||
"encrypt:linux": "./scripts/encrypt/encrypt-electron.sh",
|
||||
"cleanup:jsc": "node scripts/encrypt/cleanup-jsc.js",
|
||||
"cleanup": "node scripts/encrypt/cleanup.js",
|
||||
"restore": "node scripts/encrypt/restore.js",
|
||||
"build:win": "electron-builder --win --x64",
|
||||
"build:mac": "electron-builder --mac --x64",
|
||||
"build:linux": "electron-builder --linux --x64",
|
||||
"build:all": "electron-builder -mwl"
|
||||
"build:linux:arm64": "electron-builder --linux --arm64",
|
||||
"build:all": "electron-builder -mwl",
|
||||
"release:win": "npm run encrypt:win && npm run cleanup && npm run build:win",
|
||||
"release:mac": "npm run encrypt:linux && npm run cleanup && npm run build:mac",
|
||||
"release:linux": "npm run encrypt:linux && npm run cleanup && npm run build:linux",
|
||||
"release:linux:arm64": "npm run build:linux:arm64"
|
||||
},
|
||||
"build": {
|
||||
"productName": "SoonDesign",
|
||||
@@ -21,6 +30,23 @@
|
||||
"extraFiles": [
|
||||
"lib"
|
||||
],
|
||||
"files": [
|
||||
"**/*",
|
||||
"!.backup/**",
|
||||
"!scripts/**",
|
||||
"!**/*.jsc.map",
|
||||
"!**/node_modules/*/{CHANGELOG.md,README.md,README,readme.md,readme}",
|
||||
"!**/node_modules/*/{test,__tests__,tests,powered-test,example,examples}",
|
||||
"!**/node_modules/*.d.ts",
|
||||
"!**/node_modules/.bin",
|
||||
"!**/*.{iml,o,hprof,orig,pyc,pyo,rbc,swp,csproj,sln,xproj}",
|
||||
"!.editorconfig",
|
||||
"!**/._*",
|
||||
"!**/{.DS_Store,.git,.hg,.svn,CVS,RCS,SCCS,.gitignore,.gitattributes}",
|
||||
"!**/{__pycache__,thumbs.db,.flowconfig,.idea,.vs,.nyc_output}",
|
||||
"!**/{appveyor.yml,.travis.yml,circle.yml}",
|
||||
"!**/{npm-debug.log,yarn.lock,.yarn-integrity,.yarn-metadata.json}"
|
||||
],
|
||||
"nsis": {
|
||||
"oneClick": false,
|
||||
"allowElevation": true,
|
||||
@@ -65,8 +91,8 @@
|
||||
},
|
||||
"linux": {
|
||||
"target": [
|
||||
{ "target": "AppImage", "arch": ["x64"] },
|
||||
{ "target": "deb", "arch": ["x64"] }
|
||||
{ "target": "AppImage", "arch": ["x64", "arm64"] },
|
||||
{ "target": "deb", "arch": ["x64", "arm64"] }
|
||||
],
|
||||
"category": "Utility",
|
||||
"icon": "public/images/IconA256.png",
|
||||
|
||||
Reference in New Issue
Block a user