ci: set extraMetadata in package.json

This commit is contained in:
Abdullah Atta
2023-06-10 15:33:33 +05:00
committed by Abdullah Atta
parent ef5aebdb3b
commit 93e1ae5830
2 changed files with 6 additions and 3 deletions

View File

@@ -42,7 +42,7 @@
"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",
"builder": "./node_modules/.bin/electron-builder -c.extraMetadata.main=./build/electron.js",
"builder": "./node_modules/.bin/electron-builder",
"postinstall": "patch-package"
},
"author": {
@@ -189,6 +189,9 @@
"extraResources": [
"./assets/**"
],
"extraMetadata": {
"main": "./build/electron.js"
},
"directories": {
"buildResources": "assets",
"output": "./output/"