Skip to content

Instantly share code, notes, and snippets.

@younata
Created October 14, 2013 04:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save younata/6970602 to your computer and use it in GitHub Desktop.
Save younata/6970602 to your computer and use it in GitHub Desktop.
auto-update script for twIRCk
#!/bin/sh
pushd ~/foo/twIRCk/ # change this to wherever you keep your twIRCk sources.
git pull origin master
# removing the mac app store signing
cp TwIRCk.xcodeproj/project.pbxproj backup.pbxproj
sed '/CODE_SIGN_IDENTITY/d' < TwIRCk.xcodeproj/project.pbxproj >> new.pbxproj
mv new.pbxproj TwIRCk.xcodeproj/project.pbxproj
xcodebuild -target twIRCk
cp -r build/Release/twIRCk.app /Applications/
mv backup.pbxproj TwIRCk.xcodeproj/project.pbxproj # undoing our change so that git doesn't bitch next time we pull.
popd
# Now just stick this in crontab to run every week or so!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment