Skip to content

Commit

Permalink
Use ditto to package the binaries into a zip file
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 7f18434 commit 9ee8c2d
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions ci/cli_merge_sign.sh
Original file line number Diff line number Diff line change
Expand Up @@ -51,10 +51,12 @@ lipo -create -output cli_darwin_universal cli_darwin_arm64 cli_darwin_amd64
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

xcrun notarytool submit cli_darwin_universal --apple-id "${APPLE_ID}" --password "${AC_PASSWD}" --team-id "${TEAM_ID}" --progress --verbose --wait
xcrun notarytool submit cli_darwin_amd64 --apple-id "${APPLE_ID}" --password "${AC_PASSWD}" --team-id "${TEAM_ID}" --progress --verbose --wait
xcrun notarytool submit cli_darwin_arm64 --apple-id "${APPLE_ID}" --password "${AC_PASSWD}" --team-id "${TEAM_ID}" --progress --verbose --wait
notary_dir="$(mktemp -d)"
cp cli_darwin_universal "${notary_dir}"
cp cli_darwin_amd64 "${notary_dir}"
cp cli_darwin_arm64 "${notary_dir}"

cp cli_darwin_universal "${artifacts_dir}"
cp cli_darwin_amd64 "${artifacts_dir}"
cp cli_darwin_arm64 "${artifacts_dir}"
ditto -c -k "${notary_dir}" notarized-cli.zip
xcrun notarytool submit notarized-cli.zip --apple-id "${APPLE_ID}" --password "${AC_PASSWD}" --team-id "${TEAM_ID}" --progress --verbose --wait

cp "${notary_dir}"/* "${artifacts_dir}"

0 comments on commit 9ee8c2d

Please sign in to comment.