File tree Expand file tree Collapse file tree 1 file changed +7
-13
lines changed Expand file tree Collapse file tree 1 file changed +7
-13
lines changed Original file line number Diff line number Diff line change 2
2
3
3
set -ex
4
4
5
+ # TODO read these from package.json
6
+ VERSION=" 1.0.2"
7
+ APP=" Electron API Demos"
8
+
5
9
electron-packager . \
6
10
--asar \
7
11
--overwrite \
8
12
--platform=mas \
9
13
--app-bundle-id=com.github.electron-api-demos \
10
- --app-version=1.0.2 \ # TODO read from package.json
14
+ --app-version=$VERSION \
11
15
--arch=x64 \
12
16
--icon=assets/app-icon/mac/app.icns \
13
17
--prune=true \
14
18
--out=out \
15
19
--extend-info=assets/mac/info.plist
16
20
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"
27
23
APP_KEY=" 3rd Party Mac Developer Application: GitHub (VEKTX9H2N7)"
28
24
INSTALLER_KEY=" 3rd Party Mac Developer Installer: GitHub (VEKTX9H2N7)"
29
-
30
25
FRAMEWORKS_PATH=" $APP_PATH /Contents/Frameworks"
31
-
32
26
CHILD_PLIST=" ./assets/mac/child.plist"
33
27
PARENT_PLIST=" ./assets/mac/parent.plist"
34
28
You can’t perform that action at this time.
0 commit comments