Skip to content

Commit 9b24d23

Browse files
committed
🎨
1 parent 150e1bd commit 9b24d23

File tree

1 file changed

+7
-13
lines changed

1 file changed

+7
-13
lines changed

script/mas.sh

Lines changed: 7 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -2,33 +2,27 @@
22

33
set -ex
44

5+
# TODO read these from package.json
6+
VERSION="1.0.2"
7+
APP="Electron API Demos"
8+
59
electron-packager . \
610
--asar \
711
--overwrite \
812
--platform=mas \
913
--app-bundle-id=com.github.electron-api-demos \
10-
--app-version=1.0.2 \ # TODO read from package.json
14+
--app-version=$VERSION \
1115
--arch=x64 \
1216
--icon=assets/app-icon/mac/app.icns \
1317
--prune=true \
1418
--out=out \
1519
--extend-info=assets/mac/info.plist
1620

17-
# Name of your app.
18-
APP="Electron API Demos"
19-
20-
# The path of your app to sign.
21-
APP_PATH="./out/Electron API Demos-mas-x64/Electron API Demos.app"
22-
23-
# The path to the location you want to put the signed package.
24-
RESULT_PATH="./out/Electron API Demos.pkg"
25-
26-
# The name of certificates you requested.
21+
APP_PATH="./out/$APP-mas-x64/$APP.app"
22+
RESULT_PATH="./out/$APP.pkg"
2723
APP_KEY="3rd Party Mac Developer Application: GitHub (VEKTX9H2N7)"
2824
INSTALLER_KEY="3rd Party Mac Developer Installer: GitHub (VEKTX9H2N7)"
29-
3025
FRAMEWORKS_PATH="$APP_PATH/Contents/Frameworks"
31-
3226
CHILD_PLIST="./assets/mac/child.plist"
3327
PARENT_PLIST="./assets/mac/parent.plist"
3428

0 commit comments

Comments
 (0)