Skip to content

Commit

Permalink
create certs
Browse files Browse the repository at this point in the history
  • Loading branch information
ssantichaivekin committed Sep 5, 2022
1 parent a9b3b96 commit 7599415
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions .github/workflows/macos-build-gui-executable.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,10 +45,6 @@ jobs:
python -m pipenv lock --keep-outdated
python -m pipenv install --dev
- name: Create macos app
run: |
pipenv run pyinstaller pyinstaller_spec/empress_gui_app.spec
- name: Import codesign certificate to keychain
# Codesign and notarize app so that we don't have to go to Security and Privacy to
# allow the app to run.
Expand All @@ -69,13 +65,17 @@ jobs:
security import $CERTIFICATE_PATH -P $P12_PASSWORD -A -t cert -f pkcs12 -k $KEYCHAIN_PATH
security list-keychain -d user -s $KEYCHAIN_PATH
- name: Codesign macOS app
- name: Create macos app
run: |
echo "turn off prompts for codesign and xcrun"
security set-key-partition-list -S apple-tool:,apple:,codesign: -s -k $KEYCHAIN_PASSWORD $KEYCHAIN_PATH
pipenv run pyinstaller pyinstaller_spec/empress_gui_app.spec --codesign-identity "Developer ID Application: Santi Santichaivekin (M54SBHVQL6)"
# - name: Codesign macOS app
# run: |
# echo "turn off prompts for codesign and xcrun"
# security set-key-partition-list -S apple-tool:,apple:,codesign: -s -k $KEYCHAIN_PASSWORD $KEYCHAIN_PATH

echo "sign the application"
codesign -s Developer -v --deep --timestamp --entitlements ./pyinstaller_spec/macos_entitlements.plist -o runtime ./dist/empress.app
# echo "sign the application"
# codesign -s Developer -v --deep --timestamp --entitlements ./pyinstaller_spec/macos_entitlements.plist -o runtime ./dist/empress.app

- name: Compress macos app
run: |
Expand Down

0 comments on commit 7599415

Please sign in to comment.