build for window/mac
macOS is used for building windows since it's a hassle to install wine32 on azure ubuntu20lts due to package dependency issues
.github/workflows/release.yml
0 → 100644
{ | { | ||
"type": "commonjs", | "type": "commonjs", | ||
"name": "zap", | "name": "zap", | ||
"version": "2022.2.25", | "version": "2022.2.26", | ||
"description": "Configuration tool for the Zigbee Cluster Library", | "description": "Configuration tool for the Zigbee Cluster Library", | ||
"productName": "zap", | "productName": "zap", | ||
"cordovaId": "", | "cordovaId": "", | ||
... | @@ -42,6 +42,7 @@ | ... | @@ -42,6 +42,7 @@ |
"build": "npm run build-spa && npm run build-backend", | "build": "npm run build-spa && npm run build-backend", | ||
"build-spa": "node src-script/build-spa.js", | "build-spa": "node src-script/build-spa.js", | ||
"build-backend": "npx tsc --build ./tsconfig.json", | "build-backend": "npx tsc --build ./tsconfig.json", | ||
"postbuild-backend": "npx copyfiles './src-electron/**/*.sql' ./dist/", | |||
"regen-ts-type": "node src-script/regen-ts-type.js", | "regen-ts-type": "node src-script/regen-ts-type.js", | ||
"renderer-api-regen": "node src-script/renderer-api-regen.js", | "renderer-api-regen": "node src-script/renderer-api-regen.js", | ||
"doc": "jsdoc src-electron src-shared -r -u docs -d ./generated-html/ README.md", | "doc": "jsdoc src-electron src-shared -r -u docs -d ./generated-html/ README.md", | ||
... | @@ -132,6 +133,7 @@ | ... | @@ -132,6 +133,7 @@ |
"babel-eslint": "^10.1.0", | "babel-eslint": "^10.1.0", | ||
"babel-jest": "^26.6.3", | "babel-jest": "^26.6.3", | ||
"copy-webpack-plugin": "^6.3.2", | "copy-webpack-plugin": "^6.3.2", | ||
"copyfiles": "^2.4.1", | |||
"devtron": "^1.4.0", | "devtron": "^1.4.0", | ||
"electron": "^12.2.2", | "electron": "^12.2.2", | ||
"electron-builder": "^22.11.7", | "electron-builder": "^22.11.7", | ||
... | @@ -202,6 +204,7 @@ | ... | @@ -202,6 +204,7 @@ |
] | ] | ||
}, | }, | ||
"linux": { | "linux": { | ||
"category": "Development", | |||
"target": [ | "target": [ | ||
"snap", | "snap", | ||
"AppImage", | "AppImage", | ||
... | @@ -246,7 +249,8 @@ | ... | @@ -246,7 +249,8 @@ |
"!**/node_modules/sqlite3/build/Release/**/*", | "!**/node_modules/sqlite3/build/Release/**/*", | ||
"!quasar*", | "!quasar*", | ||
"!test.*", | "!test.*", | ||
"!src-script/**/*" | "!src-script/**/*", | ||
"!src-electron/**/*" | |||
] | ] | ||
} | } | ||
} | } |
想要评论请 注册 或 登录