-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Eugene / Dae
committed
Feb 10, 2015
1 parent
5edc7a6
commit 7768055
Showing
2 changed files
with
12 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
*.app | ||
*.app | ||
*.zip |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,20 @@ | ||
#!/bin/bash | ||
APP_NAME="Force Paste.app" | ||
INFO_PLIST="$APP_NAME/Contents/Info.plist" | ||
|
||
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" | ||
/usr/libexec/PlistBuddy -c "Add NSUIElement String 1" "$INFO_PLIST" | ||
/usr/libexec/PlistBuddy -c "Set CFBundleIconFile icon" "$INFO_PLIST" | ||
/usr/libexec/PlistBuddy -c "Add CFBundleVersion String 101" "$INFO_PLIST" | ||
/usr/libexec/PlistBuddy -c "Add CFBundleShortVersionString String 1.0.1" "$INFO_PLIST" | ||
/usr/libexec/PlistBuddy -c "Add NSHumanReadableCopyright String '© 2015 https://github.com/EugeneDae/Force-Paste/'" "$INFO_PLIST" | ||
|
||
rm -f "$APP_NAME/Contents/Resources/applet.icns" | ||
cp "icon.icns" "$APP_NAME/Contents/Resources/" | ||
|
||
rm -r "Force-Paste.zip" | ||
if [ -f "Force-Paste.zip" ]; then | ||
rm -r "Force-Paste.zip" | ||
fi | ||
|
||
zip -r "Force-Paste.zip" "Force Paste.app" |