From e6236208cf85d38d8c0514cb2fbd50cba06e79cf Mon Sep 17 00:00:00 2001 From: Yee Cheng Chin Date: Sat, 8 Jul 2023 05:10:03 -0700 Subject: [PATCH] Make sign-developer-id work if Sparkle is disabled Currently it Sparkle is disabled we remove it from the bundle. Make code signing resilient to that. This isn't used in our CI, but useful for testing or if some other people want to bundle MacVim without Sparkle. --- src/MacVim/scripts/sign-developer-id | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/MacVim/scripts/sign-developer-id b/src/MacVim/scripts/sign-developer-id index 81d092ff52..3355a3af5b 100755 --- a/src/MacVim/scripts/sign-developer-id +++ b/src/MacVim/scripts/sign-developer-id @@ -35,8 +35,11 @@ else codesign -f -s "Developer ID Application" -o runtime --timestamp "$macvim_path/Contents/Frameworks/Sparkle.framework/Versions/B/Autoupdate" codesign -f -s "Developer ID Application" -o runtime --timestamp "$macvim_path/Contents/Frameworks/Sparkle.framework/Versions/B/Updater.app") fi + if [ -d $macvim_path/Contents/Frameworks/Sparkle.framework ]; then + (set -x + codesign -f -s "Developer ID Application" -o runtime --timestamp "$macvim_path/Contents/Frameworks/Sparkle.framework") + fi set -x - codesign -f -s "Developer ID Application" -o runtime --timestamp "$macvim_path/Contents/Frameworks/Sparkle.framework" codesign -f -s "Developer ID Application" -o runtime --timestamp "$macvim_path/Contents/Frameworks/PSMTabBarControl.framework" codesign -f -s "Developer ID Application" -o runtime --timestamp "$macvim_path/Contents/Library/QuickLook/QLStephen.qlgenerator/Contents/MacOS/QLStephen" codesign -f -s "Developer ID Application" -o runtime --timestamp --entitlements $entitlements "$macvim_path/Contents/MacOS/Vim"