mirror of
https://github.com/passepartoutvpn/passepartout-apple.git
synced 2025-02-02 05:52:18 +00:00
8972d9773e
- Simplify build/version updates by moving MARKETING_VERSION and CURRENT_PROJECT_VERSION to Config.xcconfig - Provide Ruby (for fastlane) and Bash (for CI) versions of xconfig-get/set - Copy release notes atomically inside the lane to guarantee they are included in the version commit - Add -nt to skip the build tag
18 lines
355 B
Bash
Executable File
18 lines
355 B
Bash
Executable File
#!/bin/bash
|
|
if [[ -z "$1" ]]; then
|
|
echo "Path to Xcode project required"
|
|
exit 1
|
|
fi
|
|
if [[ -z "$2" ]]; then
|
|
echo "Setting key required"
|
|
exit 1
|
|
fi
|
|
if [[ -z "$3" ]]; then
|
|
echo "Setting value required"
|
|
exit 1
|
|
fi
|
|
xcconfig="$1"
|
|
setting_key="$2"
|
|
setting_value="$3"
|
|
sed -i "" -E "s/^(.*${setting_key} =) .*$/\1 ${setting_value}/" $xcconfig
|