mac build

This commit is contained in:
Jan Prochazka
2021-05-22 10:36:43 +02:00
parent 3f7caa6078
commit b151a13f65
4 changed files with 22 additions and 1 deletions

View File

@@ -26,7 +26,10 @@
],
"target": {
"target": "default",
"arch": "x64"
"arch": [
"arm64",
"x64"
]
}
},
"linux": {
@@ -85,6 +88,7 @@
"start:local": "cross-env electron .",
"dist": "electron-builder",
"build": "cd ../packages/api && yarn build && cd ../web && yarn build && cd ../../app && yarn dist",
"build:mac": "cd ../packages/api && yarn build && cd ../web && yarn build && cd ../../app && node setMacPlatform x64 && yarn dist && node setMacPlatform arm64 && yarn dist",
"build:local": "cd ../packages/api && yarn build && cd ../web && yarn build && cd ../../app && yarn predist",
"postinstall": "electron-builder install-app-deps && patch-package",
"predist": "copyfiles ../packages/api/dist/* packages && copyfiles \"../packages/web/public/*\" packages && copyfiles \"../packages/web/public/**/*\" packages && copyfiles --up 3 \"../plugins/dist/**/*\" packages/plugins"