Skip to content

Commit 41cf0f5

Browse files
authored
build: sign macos binaries for arm and amd architectures and universal packagings (#124)
1 parent c64e342 commit 41cf0f5

1 file changed

Lines changed: 12 additions & 27 deletions

File tree

Lines changed: 12 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/bash
1+
#!/usr/bin/env bash
22
# Copyright 2022-2025 Salesforce, Inc.
33
#
44
# Licensed under the Apache License, Version 2.0 (the "License");
@@ -15,29 +15,14 @@
1515

1616
set -euo pipefail
1717

18-
APP_ZIP_PATTERN="${PROD_NAME}*macOS_64-bit.zip"
19-
20-
cd ${ARTIFACTS_DIR} && APP_ZIP=$(find . -type f -iname "${APP_ZIP_PATTERN}");
21-
22-
echo $APP_ZIP
23-
24-
APP_ZIP_NAME=${APP_ZIP:2}
25-
26-
echo "$APP_ZIP_NAME"
27-
28-
unzip $APP_ZIP_NAME
29-
30-
rm $APP_ZIP_NAME
31-
32-
ls -l ${ARTIFACTS_DIR}
33-
34-
codesign --force --deep --verbose --verify --sign "Developer ID Application: SLACK TECHNOLOGIES L.L.C. (BQR82RBBHL)" --options runtime "${PROD_NAME}"
35-
36-
codesign -vvv --deep --strict "${PROD_NAME}"
37-
38-
zip -r "${APP_ZIP_NAME}" "${PROD_NAME}"
39-
40-
xcrun notarytool submit "${APP_ZIP_NAME}" -p "HERMES_NOTARY"
41-
42-
43-
18+
cd "${ARTIFACTS_DIR}"
19+
20+
for package in "${PROD_NAME}"*macOS_*.zip; do
21+
echo "Signing: ${package}"
22+
unzip "${package}"
23+
codesign --force --deep --verbose --verify --sign "Developer ID Application: SLACK TECHNOLOGIES L.L.C. (BQR82RBBHL)" --options runtime "${PROD_NAME}"
24+
codesign -vvv --deep --strict "${PROD_NAME}"
25+
zip -r "${package}" "${PROD_NAME}"
26+
rm "${PROD_NAME}"
27+
xcrun notarytool submit "${package}" -p "HERMES_NOTARY"
28+
done

0 commit comments

Comments
 (0)