Created
January 19, 2017 16:44
-
-
Save gingerbeardman/eb080bb29bfcf71f829e5ff9107f1d4a to your computer and use it in GitHub Desktop.
This file contains hidden or 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
#!/bin/bash | |
DATE=`date +%Y%m%d%H%M%S` | |
defaults write "/Users/matt/Projects/Wire Hang/Info.plist" CFBundleVersion -string "$DATE" | |
cp "Info.plist" "Wire Hang Redux.app/Contents/" | |
cp "icons/Wire Hang Redux.icns" "Wire Hang Redux.app/Contents/Resources/" | |
touch "Wire Hang Redux.app" | |
xattr -cr "Wire Hang Redux.app" | |
codesign -f -s "3rd Party Mac Developer Application: Matt Sephton (A1B234CD5E)" "Wire Hang Redux.app" | |
productbuild --component "Wire Hang Redux.app" /Applications --sign "3rd Party Mac Developer Installer: Matt Sephton (A1B234CD5E)" "Wire Hang Redux.pkg" | |
spctl -a -v --type install "Wire Hang Redux.pkg" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment