Skip to content

Commit 1708992

Browse files
committed
Force-sign binaries (ARMs are already signed before)
1 parent fb9dcda commit 1708992

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

installers/common/MacInstaller.hs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,9 @@ XML_PATH="$4"
121121
ABS_PATH="$(pwd)/$REL_PATH"
122122
TS="$(date +%Y-%m-%d_%H-%M-%S)"
123123
function sign_cmd() {
124-
codesign --verbose=4 --deep --strict --timestamp --options=runtime --entitlements $XML_PATH --sign "$SIGN_ID" "$1" 2>&1 | tee -a /tmp/codesign-output-${TS}.txt
124+
for targetFile in "$@" ; do
125+
codesign --force --verbose=4 --deep --strict --timestamp --options=runtime --entitlements $XML_PATH --sign "$SIGN_ID" "$targetFile" 2>&1 | tee -a /tmp/codesign-output-${TS}.txt
126+
done
125127
}
126128
VERIFY_CMD="codesign --verbose=4 --verify --deep --strict"
127129
ENTITLEMENT_CMD="codesign -d --entitlements :-"

0 commit comments

Comments
 (0)