mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-05 01:20:42 +00:00
8476be2300
* There's no "add or replace" so we have to just delete and ignore if it fails, then add/set as normal.
13 lines
401 B
Bash
Executable File
13 lines
401 B
Bash
Executable File
#!/bin/sh
|
|
VERSION=$1
|
|
PLIST=$2
|
|
|
|
# Delete the key if it already exists
|
|
/usr/libexec/PlistBuddy -c "Delete :CFBundleShortVersionString" "$PLIST" >/dev/null 2>&1
|
|
|
|
# Now add with the right value
|
|
/usr/libexec/PlistBuddy -c "Add :CFBundleShortVersionString string $VERSION" "$PLIST" || exit 1
|
|
|
|
# Set identifier
|
|
/usr/libexec/PlistBuddy -c "Set :CFBundleIdentifier org.renderdoc.qrenderdoc" "$PLIST" || exit 1
|