mirror of
https://github.com/CTCaer/RetroArch.git
synced 2024-12-26 12:47:37 +00:00
update version script
This commit is contained in:
parent
1c56e86da4
commit
52b6d73c5a
@ -7,8 +7,12 @@ dom1 = parse("AndroidManifest.xml")
|
||||
oldVersion = dom1.documentElement.getAttribute("android:versionCode")
|
||||
versionNumbers = oldVersion.split('.')
|
||||
|
||||
versionName = dom1.documentElement.getAttribute("android:versionName")
|
||||
versionName = versionName + "+"
|
||||
|
||||
versionNumbers[-1] = unicode(int(time.time()))
|
||||
dom1.documentElement.setAttribute("android:versionCode", u'.'.join(versionNumbers))
|
||||
dom1.documentElement.setAttribute("android:versionName", versionName)
|
||||
|
||||
with open("AndroidManifest.xml", 'wb') as f:
|
||||
for line in dom1.toxml("utf-8"):
|
||||
|
Loading…
Reference in New Issue
Block a user