Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
This script bumps iOS app version numbers. (Python 3.7.1)
print("start")
# update version numbers
current_ver_str = '1.0.0' # 現在のバージョン番号
new_ver_str = '1.1.0' # 新しいバージョン番号
# plist file names
file_names = [
'Foo/SupportingFiles/Info.plist',
'Foo/SupportingFiles/InfoStaging.plist',
'FooModel/Info.plist',
'FooUI/Info.plist'
]
for file_name in file_names:
print(file_name)
with open(file_name, "r") as f:
filedata = f.read()
filedata = filedata.replace(current_ver_str, new_ver_str)
with open(file_name, 'w') as file:
file.write(filedata)
print("done")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.