Skip to content

Commit e623620

Browse files
committed
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.
1 parent 9bae3e4 commit e623620

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/MacVim/scripts/sign-developer-id

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,11 @@ else
3535
codesign -f -s "Developer ID Application" -o runtime --timestamp "$macvim_path/Contents/Frameworks/Sparkle.framework/Versions/B/Autoupdate"
3636
codesign -f -s "Developer ID Application" -o runtime --timestamp "$macvim_path/Contents/Frameworks/Sparkle.framework/Versions/B/Updater.app")
3737
fi
38+
if [ -d $macvim_path/Contents/Frameworks/Sparkle.framework ]; then
39+
(set -x
40+
codesign -f -s "Developer ID Application" -o runtime --timestamp "$macvim_path/Contents/Frameworks/Sparkle.framework")
41+
fi
3842
set -x
39-
codesign -f -s "Developer ID Application" -o runtime --timestamp "$macvim_path/Contents/Frameworks/Sparkle.framework"
4043
codesign -f -s "Developer ID Application" -o runtime --timestamp "$macvim_path/Contents/Frameworks/PSMTabBarControl.framework"
4144
codesign -f -s "Developer ID Application" -o runtime --timestamp "$macvim_path/Contents/Library/QuickLook/QLStephen.qlgenerator/Contents/MacOS/QLStephen"
4245
codesign -f -s "Developer ID Application" -o runtime --timestamp --entitlements $entitlements "$macvim_path/Contents/MacOS/Vim"

0 commit comments

Comments
 (0)