desktop: add build script & use nx to run build commands

This commit is contained in:
Abdullah Atta
2023-06-10 11:49:51 +05:00
committed by Abdullah Atta
parent 3f79ae6403
commit 3da4ced75b
3 changed files with 9 additions and 4 deletions

View File

@@ -36,6 +36,7 @@
"start": "turbowatch scripts/dev.ts",
"staging": "zx scripts/build.mjs --run",
"release": "zx scripts/build.mjs",
"build": "tsc",
"bundle": "esbuild electron=./src/main.ts ./src/preload.ts --external:electron --external:fsevents --minify --bundle --outdir=./build --platform=node --tsconfig=tsconfig.json --define:MAC_APP_STORE=false --define:RELEASE=true",
"bundle:mas": "esbuild electron=./src/main.ts ./src/preload.ts --minify --external:electron --external:fsevents --bundle --outdir=./build --platform=node --tsconfig=tsconfig.json --define:MAC_APP_STORE=true --define:RELEASE=true",
"postinstall": "patch-package"