Skip to content

Instantly share code, notes, and snippets.

@gingerbeardman
Created January 19, 2017 16:44
Show Gist options
  • Save gingerbeardman/eb080bb29bfcf71f829e5ff9107f1d4a to your computer and use it in GitHub Desktop.
Save gingerbeardman/eb080bb29bfcf71f829e5ff9107f1d4a to your computer and use it in GitHub Desktop.
#!/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