From 5edc7a6fe6604f5b06efb299b2f38e06fc9c5a08 Mon Sep 17 00:00:00 2001 From: Eugene / Dae Date: Fri, 6 Feb 2015 15:13:38 +0300 Subject: [PATCH] When building include CFBundleVersion and create a zip automatically --- build.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/build.sh b/build.sh index 7e96324..1ccc8b6 100755 --- a/build.sh +++ b/build.sh @@ -5,5 +5,11 @@ rm -rf "$APP_NAME" osacompile -o "$APP_NAME" -x "main.scpt" /usr/libexec/PlistBuddy -c "Add NSUIElement String 1" "$APP_NAME/Contents/Info.plist" /usr/libexec/PlistBuddy -c "Set CFBundleIconFile icon" "$APP_NAME/Contents/Info.plist" +/usr/libexec/PlistBuddy -c "Add CFBundleVersion String 101" "$APP_NAME/Contents/Info.plist" +/usr/libexec/PlistBuddy -c "Add CFBundleShortVersionString String 1.0.1" "$APP_NAME/Contents/Info.plist" + rm -f "$APP_NAME/Contents/Resources/applet.icns" cp "icon.icns" "$APP_NAME/Contents/Resources/" + +rm -r "Force-Paste.zip" +zip -r "Force-Paste.zip" "Force Paste.app" \ No newline at end of file