Skip to content

Commit f050bb1

Browse files
committed
Use package.json values exposed as npm env vars
1 parent 9b24d23 commit f050bb1

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

script/mas.sh

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,22 +2,19 @@
22

33
set -ex
44

5-
# TODO read these from package.json
6-
VERSION="1.0.2"
7-
APP="Electron API Demos"
8-
95
electron-packager . \
106
--asar \
117
--overwrite \
128
--platform=mas \
139
--app-bundle-id=com.github.electron-api-demos \
14-
--app-version=$VERSION \
10+
--app-version="$npm_package_version" \
1511
--arch=x64 \
1612
--icon=assets/app-icon/mac/app.icns \
1713
--prune=true \
1814
--out=out \
1915
--extend-info=assets/mac/info.plist
2016

17+
APP="$npm_package_productName"
2118
APP_PATH="./out/$APP-mas-x64/$APP.app"
2219
RESULT_PATH="./out/$APP.pkg"
2320
APP_KEY="3rd Party Mac Developer Application: GitHub (VEKTX9H2N7)"

0 commit comments

Comments
 (0)