Skip to content

Commit

Permalink
Merge pull request #7065 from ORNL-AMO/hotfix/automate-windows-build-…
Browse files Browse the repository at this point in the history
…signing

hotfix/automate-windows-build-signing - Resolve jsign syntax during windows build
  • Loading branch information
esserhr authored Oct 14, 2024
2 parents 8e0264c + f7ca55c commit c28679c
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions .github/workflows/electron.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,18 +40,13 @@ jobs:
run: npm run build-prod-desktop-ci
- name: Package
run: |
(node ./node_modules/.bin/electron-builder --mac --universal --publish never &&
xcrun notarytool submit --wait \
--apple-id "${{ secrets.APPLE_ID }}" \
--password "${{ secrets.APPLE_APP_SECRET }}" \
--team-id "${{ secrets.APPLE_TEAM_ID }}" \
$(find ../output -name "MEASUR-*.*.*.dmg")) &
node ./node_modules/.bin/electron-builder --mac --universal --publish never &
(node ./node_modules/.bin/electron-builder --win --x64 --publish never &&
EXE_PATH=$(find ../output -name "MEASUR-Setup-*.*.*.exe") &&
java -jar ~/jsign.jar \
--storetype "${{ secrets.WIN_STORE_TYPE }}" \
--storepass "${{ secrets.WIN_STORE_SECRET }}" \
--tsaurl "http://timestamp.sectigo.com"
--tsaurl "http://timestamp.sectigo.com" \
--certfile ./wincert.pem \
$EXE_PATH &&
(OLD_HASH=$(ggrep -o -P -m 1 '(?<=sha512:\s).*' ../output/latest.yml) &
Expand Down Expand Up @@ -100,7 +95,10 @@ jobs:
with:
name: init-mac-output
- name: Notarize
run: xcrun stapler staple $(find ./ -name "MEASUR-*.*.*.dmg")
run: |
xcrun notarytool submit --wait --apple-id "${{ secrets.APPLE_ID }}" --password "${{ secrets.APPLE_APP_SECRET }}" --team-id "${{ secrets.APPLE_TEAM_ID }}" $(find ./ -name "MEASUR-*.*.*.dmg") &&
sleep 60 &&
xcrun stapler staple $(find ./ -name "MEASUR-*.*.*.dmg")
- name: Upload notarized artifact
uses: actions/upload-artifact@v4
with:
Expand Down

0 comments on commit c28679c

Please sign in to comment.