Skip to content

Instantly share code, notes, and snippets.

@MaciejGad
Created July 17, 2018 08:26
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 MaciejGad/043e08b387b30478a0f52704d0e901d3 to your computer and use it in GitHub Desktop.
Save MaciejGad/043e08b387b30478a0f52704d0e901d3 to your computer and use it in GitHub Desktop.
#!/bin/bash
info="Info.plist"
plistBuddy=/usr/libexec/PlistBuddy
version=`$plistBuddy -c "print CFBundleVersion" "$info"`
echo "Current version: $version"
((version++))
echo "New version: $version"
$plistBuddy -c "set CFBundleVersion $version" "$info"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment