Skip to content

Commit

Permalink
Update scripts/package-macos.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
jhen0409 committed Oct 29, 2019
1 parent ab30ffc commit c64982c
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions scripts/package-macos.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,10 @@ PACKAGE_VERSION=$(node -e "console.log(require('./package.json').version)")

echo "[v$PACKAGE_VERSION] Packaging darwin x64..."

echo -e "Apple ID: \c"
read appleId
if [ -z "$APPLE_ID" ]; then
echo -e "Apple ID: \c"
read APPLE_ID
fi

electron-packager dist/ \
--overwrite \
Expand All @@ -22,7 +24,7 @@ electron-packager dist/ \
--osx-sign.entitlements=scripts/mac/entitlements.plist \
--osx-sign.entitlements-inherit=scripts/mac/entitlements.plist \
--osx-sign.hardenedRuntime \
--osx-notarize.appleId=$appleId \
--osx-notarize.appleId=$APPLE_ID \
--osx-notarize.appleIdPassword='@keychain:AC_PASSWORD' \
--osx-notarize.ascProvider='C6EUM5DVB3' \
--icon electron/logo.icns \
Expand Down

0 comments on commit c64982c

Please sign in to comment.