mirror of
https://github.com/pulsar-edit/pulsar.git
synced 2024-11-10 10:17:11 +03:00
16 lines
529 B
Bash
Executable File
16 lines
529 B
Bash
Executable File
#!/bin/sh
|
|
|
|
set -e
|
|
|
|
SHELL_APP_DIR=$1
|
|
VERSION=$2
|
|
|
|
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"
|