File tree Expand file tree Collapse file tree
.circleci/runner/src/scripts/mac Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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");
1515
1616set -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
You can’t perform that action at this time.
0 commit comments