pulsar/script/set-version

16 lines
529 B
Plaintext
Raw Normal View History

#!/bin/sh
set -e
2015-12-09 01:39:14 +03:00
SHELL_APP_DIR=$1
VERSION=$2
2015-12-09 01:39:14 +03:00
PLIST_PATH="$SHELL_APP_DIR/Contents/Info.plist"
HELPER_PLIST_PATH="$SHELL_APP_DIR/Contents/Frameworks/Atom Helper.app/Contents/Info.plist"
# Update version
/usr/libexec/PlistBuddy -c "Set CFBundleShortVersionString $VERSION" "$PLIST_PATH"
/usr/libexec/PlistBuddy -c "Set CFBundleVersion $VERSION" "$PLIST_PATH"
/usr/libexec/PlistBuddy -c "Set CFBundleShortVersionString $VERSION" "$HELPER_PLIST_PATH"
/usr/libexec/PlistBuddy -c "Set CFBundleVersion $VERSION" "$HELPER_PLIST_PATH"