Skip to content

Commit

Permalink
Replace gon macos signing with notarytool
Browse files Browse the repository at this point in the history
Signed-off-by: Dom Del Nano <[email protected]>
  • Loading branch information
ddelnano committed Aug 26, 2024
1 parent 33f0daf commit 82a7944
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 23 deletions.
2 changes: 0 additions & 2 deletions .github/workflows/cli_release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -87,8 +87,6 @@ jobs:
fetch-depth: 0
- name: Add pwd to git safe dir
run: git config --global --add safe.directory `pwd`
- name: Install gon
run: brew install mitchellh/gon/gon
- name: Sign CLI release
env:
REF: ${{ github.event.ref }}
Expand Down
8 changes: 7 additions & 1 deletion ci/cli_merge_sign.sh
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,13 @@ done
# Create a universal binary.
lipo -create -output cli_darwin_universal cli_darwin_arm64 cli_darwin_amd64

gon ci/gon.hcl
export TEAM_ID="SZCNTABEXY"
export APP_IDENTITY="Developer ID Application: Pixie Labs Inc. (${TEAM_ID})"
codesign -f -v --timestamp --options runtime -s "${APP_IDENTITY}" cli_darwin_universal cli_darwin_arm64 cli_darwin_amd64

notarytool submit cli_darwin_universal --apple-id [email protected] --password "${AC_PASSWD}" --team-id "${TEAM_ID}" --bundle-id ai.pixielabs.px --progress --verbose --wait
notarytool submit cli_darwin_amd64 --apple-id [email protected] --password "${AC_PASSWD}" --team-id "${TEAM_ID}" --bundle-id ai.pixielabs.px --progress --verbose --wait
notarytool submit cli_darwin_arm64 --apple-id [email protected] --password "${AC_PASSWD}" --team-id "${TEAM_ID}" --bundle-id ai.pixielabs.px --progress --verbose --wait

cp cli_darwin_universal "${artifacts_dir}"
cp cli_darwin_amd64 "${artifacts_dir}"
Expand Down
20 changes: 0 additions & 20 deletions ci/gon.hcl

This file was deleted.

0 comments on commit 82a7944

Please sign in to comment.