Browse Source

contrib/osx:

- rename make_osx2.sh -> sign_osx.sh
- add command to unlock keychain
- chmod +x
master
ThomasV 2 years ago
parent
commit
de5ca461d4
  1. 4
      contrib/osx/README.md
  2. 2
      contrib/osx/make_osx.sh
  3. 2
      contrib/osx/sign_osx.sh

4
contrib/osx/README.md

@ -91,13 +91,13 @@ This creates both a folder named Electrum.app and the .dmg file (both unsigned).
##### 2.1. For release binaries, here be dragons ##### 2.1. For release binaries, here be dragons
If you want the binaries codesigned for macOS and notarised by Apple's central server, If you want the binaries codesigned for macOS and notarised by Apple's central server,
also run the `make_osx2.sh` script: also run the `sign_osx.sh` script:
CODESIGN_CERT="Developer ID Application: Electrum Technologies GmbH (L6P37P7P56)" \ CODESIGN_CERT="Developer ID Application: Electrum Technologies GmbH (L6P37P7P56)" \
APPLE_TEAM_ID="L6P37P7P56" \ APPLE_TEAM_ID="L6P37P7P56" \
APPLE_ID_USER="me@email.com" \ APPLE_ID_USER="me@email.com" \
APPLE_ID_PASSWORD="1234" \ APPLE_ID_PASSWORD="1234" \
./contrib/osx/make_osx2.sh ./contrib/osx/sign_osx.sh
(note: `APPLE_ID_PASSWORD` is an app-specific password, *not* the account password) (note: `APPLE_ID_PASSWORD` is an app-specific password, *not* the account password)

2
contrib/osx/make_osx.sh

@ -213,4 +213,4 @@ info "Creating unsigned .DMG"
hdiutil create -fs HFS+ -volname $PACKAGE -srcfolder dist/$PACKAGE.app dist/electrum-$VERSION-unsigned.dmg || fail "Could not create .DMG" hdiutil create -fs HFS+ -volname $PACKAGE -srcfolder dist/$PACKAGE.app dist/electrum-$VERSION-unsigned.dmg || fail "Could not create .DMG"
info "App was built successfully but was not code signed. Users may get security warnings from macOS." info "App was built successfully but was not code signed. Users may get security warnings from macOS."
info "Now you also need to run make_osx2.sh to codesign/notarize the binary." info "Now you also need to run sign_osx.sh to codesign/notarize the binary."

2
contrib/osx/make_osx2.sh → contrib/osx/sign_osx.sh

@ -2,6 +2,8 @@
set -e set -e
security -v unlock-keychain login.keychain
PACKAGE=Electrum PACKAGE=Electrum
Loading…
Cancel
Save