Skip to content

Commit

Permalink
When building include CFBundleVersion and create a zip automatically
Browse files Browse the repository at this point in the history
  • Loading branch information
Eugene / Dae committed Feb 6, 2015
1 parent 959969a commit 5edc7a6
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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"

0 comments on commit 5edc7a6

Please sign in to comment.