Skip to content

Instantly share code, notes, and snippets.

View andrius-k's full-sized avatar

Andrius andrius-k

View GitHub Profile
@andrius-k
andrius-k / GenerateInfoPlist
Last active August 4, 2023 08:23
Shell script to generate and modify Info.plist values based on original file.
#!/bin/sh
# Get content of original Info.plist file
originalFileContent="$(cat Info.plist)"
# Save build configuration passed by IDE
buildConfiguration=$1
# Get CFBundleIdentifier value from original Info.plist file
bundleId=$(defaults read $(pwd)/Info CFBundleIdentifier)