@@ -17,27 +17,27 @@ set -e
1717macvim_path=$1
1818entitlements=$2
1919
20- if [[ $macvim_path =~ dmg ]]; then
20+ if [[ " $macvim_path " =~ dmg ]]; then
2121 set -x
22- codesign -f -s " Developer ID Application" -o runtime --timestamp $macvim_path
22+ codesign -f -s " Developer ID Application" -o runtime --timestamp " $macvim_path "
2323else
2424 # Sign bottom-up to make sure everything is signed in order.
2525 # Note: Not using --deep because it's been deprecated since macOS 13, and
2626 # also it doesn't catch all the binaries anyway so it's better to just be
2727 # explicit and sign everything in order to be clear what we are doing.
28- if [ -d $macvim_path /Contents/Frameworks/Sparkle.framework/Versions/A ]; then
28+ if [ -d " $macvim_path /Contents/Frameworks/Sparkle.framework/Versions/A" ]; then
2929 (set -x
30- codesign -f -s " Developer ID Application" -o runtime --timestamp $macvim_path /Contents/Frameworks/Sparkle.framework/Versions/A/Resources/Autoupdate.app)
30+ codesign -f -s " Developer ID Application" -o runtime --timestamp " $macvim_path /Contents/Frameworks/Sparkle.framework/Versions/A/Resources/Autoupdate.app" )
3131 fi
3232 if [ -d $macvim_path /Contents/Frameworks/Sparkle.framework/Versions/B ]; then
3333 (set -x
34- codesign -f -s " Developer ID Application" -o runtime --timestamp $macvim_path /Contents/Frameworks/Sparkle.framework/Versions/B/Autoupdate
35- codesign -f -s " Developer ID Application" -o runtime --timestamp $macvim_path /Contents/Frameworks/Sparkle.framework/Versions/B/Updater.app)
34+ codesign -f -s " Developer ID Application" -o runtime --timestamp " $macvim_path /Contents/Frameworks/Sparkle.framework/Versions/B/Autoupdate"
35+ codesign -f -s " Developer ID Application" -o runtime --timestamp " $macvim_path /Contents/Frameworks/Sparkle.framework/Versions/B/Updater.app" )
3636 fi
3737 set -x
38- codesign -f -s " Developer ID Application" -o runtime --timestamp $macvim_path /Contents/Frameworks/Sparkle.framework
39- codesign -f -s " Developer ID Application" -o runtime --timestamp $macvim_path /Contents/Frameworks/PSMTabBarControl.framework
40- codesign -f -s " Developer ID Application" -o runtime --timestamp $macvim_path /Contents/Library/QuickLook/QLStephen.qlgenerator/Contents/MacOS/QLStephen
41- codesign -f -s " Developer ID Application" -o runtime --timestamp --entitlements $entitlements $macvim_path /Contents/MacOS/Vim
42- codesign -f -s " Developer ID Application" -o runtime --timestamp --entitlements $entitlements $macvim_path
38+ codesign -f -s " Developer ID Application" -o runtime --timestamp " $macvim_path /Contents/Frameworks/Sparkle.framework"
39+ codesign -f -s " Developer ID Application" -o runtime --timestamp " $macvim_path /Contents/Frameworks/PSMTabBarControl.framework"
40+ codesign -f -s " Developer ID Application" -o runtime --timestamp " $macvim_path /Contents/Library/QuickLook/QLStephen.qlgenerator/Contents/MacOS/QLStephen"
41+ codesign -f -s " Developer ID Application" -o runtime --timestamp --entitlements $entitlements " $macvim_path /Contents/MacOS/Vim"
42+ codesign -f -s " Developer ID Application" -o runtime --timestamp --entitlements $entitlements " $macvim_path "
4343fi
0 commit comments