Last active
February 9, 2019 22:06
-
-
Save jlucaspains/fbe9f9d88503f72a6e65eeecd37460e3 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
echo "setting plist" | |
echo "setting CFBundleVersion to $(Build.BuildNumber)" | |
echo "setting CFBundleDisplayName to AppName" | |
echo "setting CFBundleIdentifier to com.Company.AppName" | |
export INFO="$BUILD_SOURCESDIRECTORY/Path/To/Info.plist" | |
/usr/libexec/PlistBuddy -c "set :CFBundleVersion $(Build.BuildNumber)" $INFO | |
/usr/libexec/PlistBuddy -c "set :CFBundleDisplayName AppName" $INFO | |
/usr/libexec/PlistBuddy -c "set :CFBundleIdentifier com.Company.AppName" $INFO | |
/usr/libexec/PlistBuddy -c "set :XSAppIconAssets AppIcons_PRD.xcassets/AppIcons_PRD.appiconset" $INFO | |
/usr/libexec/PlistBuddy -c "set :XSLaunchImageAssets AppIcons_PRD.xcassets/LaunchImages_PRD.launchimage" $INFO | |
/usr/libexec/PlistBuddy -x -c "Print" $INFO |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment