forked from mirrors/linphone-iphone
Update linphone version to have it > 3.7.3 (last iTunes version). Also, don't increment build version when building for something else than Release, and use a shell script instead of a built-in script.
This commit is contained in:
parent
2bc27faa6c
commit
276136e212
3 changed files with 16 additions and 3 deletions
13
Tools/buildNumber.sh
Executable file
13
Tools/buildNumber.sh
Executable file
|
|
@ -0,0 +1,13 @@
|
|||
#!/bin/bash
|
||||
|
||||
#increment build number each time we build
|
||||
|
||||
if [[ $CONFIGURATION = "Release" ]]; then
|
||||
buildNumber=$(/usr/libexec/PlistBuddy -c "Print CFBundleVersion" "$INFOPLIST_FILE")
|
||||
buildNumber=$(($buildNumber + 1))
|
||||
/usr/libexec/PlistBuddy -c "Set :CFBundleVersion $buildNumber" "$INFOPLIST_FILE"
|
||||
echo "Incremented build number to $buildNumber"
|
||||
else
|
||||
echo "Skip build increment when building for $CONFIGURATION"
|
||||
fi
|
||||
|
||||
|
|
@ -59,7 +59,7 @@
|
|||
<key>CFBundlePackageType</key>
|
||||
<string>APPL</string>
|
||||
<key>CFBundleShortVersionString</key>
|
||||
<string>2.2.4</string>
|
||||
<string>4.0.0</string>
|
||||
<key>CFBundleURLTypes</key>
|
||||
<array>
|
||||
<dict>
|
||||
|
|
@ -88,7 +88,7 @@
|
|||
</dict>
|
||||
</array>
|
||||
<key>CFBundleVersion</key>
|
||||
<string>9</string>
|
||||
<string>10</string>
|
||||
<key>LSRequiresIPhoneOS</key>
|
||||
<true/>
|
||||
<key>UIApplicationExitsOnSuspend</key>
|
||||
|
|
|
|||
|
|
@ -3789,7 +3789,7 @@
|
|||
);
|
||||
runOnlyForDeploymentPostprocessing = 0;
|
||||
shellPath = /bin/bash;
|
||||
shellScript = "#increment build number each time we build\n\nbuildNumber=$(/usr/libexec/PlistBuddy -c \"Print CFBundleVersion\" \"$INFOPLIST_FILE\")\nbuildNumber=$(($buildNumber + 1))\n/usr/libexec/PlistBuddy -c \"Set :CFBundleVersion $buildNumber\" \"$INFOPLIST_FILE\"\n\n\n\n\n";
|
||||
shellScript = "$SRCROOT/Tools/buildNumber.sh\n";
|
||||
};
|
||||
/* End PBXShellScriptBuildPhase section */
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue