Skip to content

Commit 04a04b0

Browse files
committed
fix(ci): download arch-specific macnotary package
1 parent c4f7a0a commit 04a04b0

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

.evergreen/sign-packaged-artifact.sh

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,16 @@ fi
1616
ls -lh dist/
1717

1818
if [ "$(uname)" == Darwin ]; then
19+
notary_arch=amd64
20+
if [ `uname -m` = arm64 ]; then
21+
notary_arch=arm64
22+
fi
1923
# https://wiki.corp.mongodb.com/display/BUILD/How+to+use+MacOS+notary+service
2024
# download macnotary client
21-
curl -LO https://macos-notary-1628249594.s3.amazonaws.com/releases/client/latest/darwin_amd64.zip
22-
unzip darwin_amd64.zip
23-
chmod +x ./darwin_amd64/macnotary
24-
./darwin_amd64/macnotary -v
25+
curl -LO https://macos-notary-1628249594.s3.amazonaws.com/releases/client/latest/darwin_${notary_arch}.zip
26+
unzip darwin_${notary_arch}.zip
27+
chmod +x ./darwin_${notary_arch}/macnotary
28+
./darwin_${notary_arch}/macnotary -v
2529

2630
FILE=$(echo ./dist/*.zip)
2731
echo "notarizing $FILE ..."

0 commit comments

Comments
 (0)