mirror of
https://github.com/LBRYFoundation/LBRY-Vault.git
synced 2025-08-23 17:47:31 +00:00
include version number in the filename of android package
This commit is contained in:
parent
15fb3a55a7
commit
7940cf870a
1 changed files with 7 additions and 4 deletions
|
@ -28,18 +28,21 @@ if __name__ == '__main__':
|
||||||
os.chdir("dist")
|
os.chdir("dist")
|
||||||
# create the zip file
|
# create the zip file
|
||||||
os.system( "zip -r e4a-%s.zip e4a-%s"%(version, version) )
|
os.system( "zip -r e4a-%s.zip e4a-%s"%(version, version) )
|
||||||
# copy to a filename without extension
|
|
||||||
os.system( "cp e4a-%s.zip e4a"%version )
|
# change filename because some 3G carriers do not allow users to download a zip file...
|
||||||
|
e4a_name = "e4a-%s.zip"%version
|
||||||
|
e4a_name2 = e4a_name.replace(".","")
|
||||||
|
os.system( "cp %s %s"%(e4a_name, e4a_name2) )
|
||||||
os.chdir("..")
|
os.chdir("..")
|
||||||
|
|
||||||
md5_tgz = hashlib.md5(file('dist/'+_tgz, 'r').read()).digest().encode('hex')
|
md5_tgz = hashlib.md5(file('dist/'+_tgz, 'r').read()).digest().encode('hex')
|
||||||
md5_zip = hashlib.md5(file('dist/'+_zip, 'r').read()).digest().encode('hex')
|
md5_zip = hashlib.md5(file('dist/'+_zip, 'r').read()).digest().encode('hex')
|
||||||
md5_android = hashlib.md5(file('dist/e4a', 'r').read()).digest().encode('hex')
|
md5_android = hashlib.md5(file('dist/'+e4a_name2, 'r').read()).digest().encode('hex')
|
||||||
|
|
||||||
print ""
|
print ""
|
||||||
print "Packages are ready:"
|
print "Packages are ready:"
|
||||||
print "dist/%s "%_tgz, md5_tgz
|
print "dist/%s "%_tgz, md5_tgz
|
||||||
print "dist/%s "%_zip, md5_zip
|
print "dist/%s "%_zip, md5_zip
|
||||||
print "dist/e4a ", md5_android
|
print "dist/e4a ", md5_android
|
||||||
print "To make a release, upload the files to https://github.com/spesmilo/electrum/downloads and update the webpages in branch gh-pages"
|
print "To make a release, upload the files to the server, and update the webpages in branch gh-pages"
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue