-
-
Notifications
You must be signed in to change notification settings - Fork 322
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
49 additions
and
48 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -25,57 +25,57 @@ jobs: | |
- name: Build binaries | ||
run: npm run pkg | ||
|
||
- name: Sign and notarize the nexrender-cli-macos | ||
uses: toitlang/[email protected] | ||
with: | ||
certificate: ${{ secrets.MACOS_CERTIFICATE }} | ||
certificate-password: ${{ secrets.MACOS_CERTIFICATE_PWD }} | ||
username: ${{ secrets.APPLE_ID_USERNAME }} | ||
password: ${{ secrets.APPLE_ID_PASSWORD }} | ||
apple-team-id: 89QX7NXPQM | ||
app-path: bin/nexrender-cli-macos | ||
# - name: Sign and notarize the nexrender-cli-macos | ||
# uses: toitlang/[email protected] | ||
# with: | ||
# certificate: ${{ secrets.MACOS_CERTIFICATE }} | ||
# certificate-password: ${{ secrets.MACOS_CERTIFICATE_PWD }} | ||
# username: ${{ secrets.APPLE_ID_USERNAME }} | ||
# password: ${{ secrets.APPLE_ID_PASSWORD }} | ||
# apple-team-id: 89QX7NXPQM | ||
# app-path: bin/nexrender-cli-macos | ||
|
||
# - name: Sign and notarize the nexrender-worker-macos | ||
- name: Code sign (nexrender-worker-macos) | ||
shell: bash | ||
run: | | ||
security find-identity -v signing_temp.keychain | grep "89QX7NXPQM" | grep "Developer ID Application" | ||
codesign --keychain signing_temp.keychain --force --deep --sign "89QX7NXPQM" "bin/nexrender-worker-macos" --options=runtime | ||
# # - name: Sign and notarize the nexrender-worker-macos | ||
# - name: Code sign (nexrender-worker-macos) | ||
# shell: bash | ||
# run: | | ||
# security find-identity -v signing_temp.keychain | grep "89QX7NXPQM" | grep "Developer ID Application" | ||
# codesign --keychain signing_temp.keychain --force --deep --sign "89QX7NXPQM" "bin/nexrender-worker-macos" --options=runtime | ||
|
||
- name: Create a tmp directory | ||
id: tmp2 | ||
shell: bash | ||
run: | | ||
echo "path=$(mktemp -d -t sign_notarize.XXXXXXXXXX)" >> $GITHUB_OUTPUT | ||
# - name: Create a tmp directory | ||
# id: tmp2 | ||
# shell: bash | ||
# run: | | ||
# echo "path=$(mktemp -d -t sign_notarize.XXXXXXXXXX)" >> $GITHUB_OUTPUT | ||
|
||
- name: Create a ZIP (nexrender-worker-macos) | ||
id: zip2 | ||
shell: bash | ||
run: | | ||
TMP=${{ steps.tmp2.outputs.path }} | ||
ZIP_PATH="$TMP/app2.zip" | ||
zip -j "$ZIP_PATH" "bin/nexrender-worker-macos" | ||
echo "zip_path=$ZIP_PATH" >> $GITHUB_OUTPUT | ||
# - name: Create a ZIP (nexrender-worker-macos) | ||
# id: zip2 | ||
# shell: bash | ||
# run: | | ||
# TMP=${{ steps.tmp2.outputs.path }} | ||
# ZIP_PATH="$TMP/app2.zip" | ||
# zip -j "$ZIP_PATH" "bin/nexrender-worker-macos" | ||
# echo "zip_path=$ZIP_PATH" >> $GITHUB_OUTPUT | ||
|
||
- name: Notarize (nexrender-worker-macos) | ||
shell: bash | ||
run: | | ||
TMP=${{ steps.tmp2.outputs.path }} | ||
xcrun notarytool submit \ | ||
"${{ steps.zip2.outputs.zip_path }}" \ | ||
--wait \ | ||
--apple-id "${{ secrets.APPLE_ID_USERNAME }}" \ | ||
--password "${{ secrets.APPLE_ID_PASSWORD }}" \ | ||
--team-id "89QX7NXPQM" \ | ||
--output-format json \ | ||
| tee "$TMP/out.json" | ||
grep -q "Accepted" "$TMP/out.json" | ||
# - name: Notarize (nexrender-worker-macos) | ||
# shell: bash | ||
# run: | | ||
# TMP=${{ steps.tmp2.outputs.path }} | ||
# xcrun notarytool submit \ | ||
# "${{ steps.zip2.outputs.zip_path }}" \ | ||
# --wait \ | ||
# --apple-id "${{ secrets.APPLE_ID_USERNAME }}" \ | ||
# --password "${{ secrets.APPLE_ID_PASSWORD }}" \ | ||
# --team-id "89QX7NXPQM" \ | ||
# --output-format json \ | ||
# | tee "$TMP/out.json" | ||
# grep -q "Accepted" "$TMP/out.json" | ||
|
||
- name: Check notarization (nexrender-worker-macos) | ||
shell: bash | ||
run: | | ||
# See https://developer.apple.com/forums/thread/130560 | ||
codesign -vvvv -R="notarized" --check-notarization "bin/nexrender-worker-macos" | ||
# - name: Check notarization (nexrender-worker-macos) | ||
# shell: bash | ||
# run: | | ||
# # See https://developer.apple.com/forums/thread/130560 | ||
# codesign -vvvv -R="notarized" --check-notarization "bin/nexrender-worker-macos" | ||
|
||
- name: Publish release | ||
uses: softprops/action-gh-release@v1 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
{"status":"Invalid","message":"Processing complete","id":"fb3442cb-259d-4ee6-8f6b-91469f1cd87d"} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters