Skip to content

Commit 14103c0

Browse files
committed
Packaging: Force-sign auto-generated apps
On Big Sur and later, osacompile automatically signs the apps that it generates, so we must pass -f to the program in order to overwrite the existing signature with ours.
1 parent ea748cc commit 14103c0

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

release/makemacpkg.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ fi
8080
install -m 644 @CMAKE_BINARY_DIR@/pkgscripts/uninstall.applescript $TMPDIR
8181
osacompile -t APPL -a x86_64 -o "$TMPDIR/Uninstall $PROJECT.app" $TMPDIR/uninstall.applescript
8282
if [ "$MACOS_APP_CERT_NAME" != "" ]; then
83-
codesign -s "$MACOS_APP_CERT_NAME" --timestamp "$TMPDIR/Uninstall $PROJECT.app"
83+
codesign -f -s "$MACOS_APP_CERT_NAME" --timestamp "$TMPDIR/Uninstall $PROJECT.app"
8484
codesign -vv "$TMPDIR/Uninstall $PROJECT.app"
8585
fi
8686
cp -RX "$TMPDIR/Uninstall $PROJECT.app" "$PKGROOT/Applications/$PROJECT/"

0 commit comments

Comments
 (0)