mirror of
https://github.com/libretro/RetroArch.git
synced 2025-04-02 10:51:52 -04:00
update version script
This commit is contained in:
parent
1c56e86da4
commit
52b6d73c5a
1 changed files with 4 additions and 0 deletions
|
@ -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…
Add table
Reference in a new issue