-
Notifications
You must be signed in to change notification settings - Fork 47
/
deploy_mac_app_store
executable file
·43 lines (30 loc) · 3.3 KB
/
deploy_mac_app_store
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
APP="vjs"
electron-packager . --ignore=node_modules/electron-* --overwrite --icon=icon.icns --platform=mas --app-bundle-id=com.yazz.vjs --app-version=2021.0.0 --build-version="1.0.0" --arch=x64 --out=appstore_mac --extend-info=../mac_app_store/info.plist
APP_PATH="./appstore_mac/$APP-mas-x64/$APP.app"
RESULT_PATH="./appstore_mac/$APP.pkg"
APP_KEY="3rd Party Mac Developer Application: F Quraishi (4H9Q732XXV)"
INSTALLER_KEY="3rd Party Mac Developer Installer: F Quraishi (4H9Q732XXV)"
FRAMEWORKS_PATH="$APP_PATH/Contents/Frameworks"
CHILD_PLIST="../mac_app_store/child.plist"
PARENT_PLIST="../mac_app_store/parent.plist"
LOGINHELPER_PLIST="../mac_app_store/loginhelper.plist"
# electron-osx-sign "$APP_PATH" --identity="3rd Party Mac Developer Application: F Quraishi (4H9Q732XXV)" --verbose
# codesign -s "$APP_KEY" -f --entitlements "$PARENT_PLIST" "$APP_PATH/Contents/Resources/app/node_modules/sqlite3/lib/binding/electron-v11.1-darwin-x64/node_sqlite3.node"
# codesign -s "$APP_KEY" -f --entitlements "$CHILD_PLIST" "$APP_PATH/Contents/Resources/app/node_modules/sqlite3/lib/binding/electron-v11.1-darwin-x64/node_sqlite3.node"
# codesign -s "$APP_KEY" -f --entitlements "$PARENT_PLIST" "$APP_PATH/Contents/Resources/app/node_modules/sqlite3/lib/binding/electron-v11.2-darwin-x64/node_sqlite3.node"
# codesign -s "$APP_KEY" -f --entitlements "$CHILD_PLIST" "$APP_PATH/Contents/Resources/app/node_modules/sqlite3/lib/binding/electron-v11.2-darwin-x64/node_sqlite3.node"
# codesign -s "$APP_KEY" -f --entitlements "$PARENT_PLIST" "$APP_PATH/Contents/Resources/app/node_modules/sqlite3/lib/binding/electron-v11.3-darwin-x64/node_sqlite3.node"
# codesign -s "$APP_KEY" -f --entitlements "$CHILD_PLIST" "$APP_PATH/Contents/Resources/app/node_modules/sqlite3/lib/binding/electron-v11.3-darwin-x64/node_sqlite3.node"
# codesign -s "$APP_KEY" -f --entitlements "$PARENT_PLIST" "$APP_PATH/Contents/Resources/app/node_modules/sqlite3/lib/binding/node-v64-darwin-x64/node_sqlite3.node"
# codesign -s "$APP_KEY" -f --entitlements "$CHILD_PLIST" "$APP_PATH/Contents/Resources/app/node_modules/sqlite3/lib/binding/node-v64-darwin-x64/node_sqlite3.node"
# codesign -s "$APP_KEY" -f --entitlements "$CHILD_PLIST" "$FRAMEWORKS_PATH/Electron Framework.framework/Versions/A/Electron Framework"
# codesign -s "$APP_KEY" -f --entitlements "$CHILD_PLIST" "$FRAMEWORKS_PATH/Electron Framework.framework/Versions/A/Libraries/libnode.dylib"
# codesign -s "$APP_KEY" -f --entitlements "$CHILD_PLIST" "$FRAMEWORKS_PATH/Electron Framework.framework"
# codesign -s "$APP_KEY" -f --entitlements "$CHILD_PLIST" "$FRAMEWORKS_PATH/$APP Helper.app/Contents/MacOS/$APP Helper"
# codesign -s "$APP_KEY" -f --entitlements "$CHILD_PLIST" "$FRAMEWORKS_PATH/$APP Helper.app/"
# codesign -s "$APP_KEY" -f --entitlements "$LOGINHELPER_PLIST" "$APP_PATH/Contents/Library/LoginItems/$APP Login Helper.app/Contents/MacOS/$APP Login Helper"
# codesign -s "$APP_KEY" -f --entitlements "$LOGINHELPER_PLIST" "$APP_PATH/Contents/Library/LoginItems/$APP Login Helper.app/"
# codesign --deep -s "$APP_KEY" -f --entitlements "$CHILD_PLIST" "$APP_PATH/Contents/MacOS/$APP"
# codesign -s "$APP_KEY" -f --entitlements "$PARENT_PLIST" "$APP_PATH"
productbuild --component "$APP_PATH" /Applications --sign "$INSTALLER_KEY" "$RESULT_PATH"
spctl --assess -v --type install appstore_mac/vjs-mas-x64/vjs.app