commit 7940cf870a8045bed3f70038da33ebe85c5965d1
parent 15fb3a55a7aa84d3aac5c958866d8c6435cc7725
Author: ThomasV <thomasv@gitorious>
Date: Tue, 18 Dec 2012 17:14:38 +0100
include version number in the filename of android package
Diffstat:
1 file changed, 7 insertions(+), 4 deletions(-)
diff --git a/make_packages b/make_packages
@@ -28,18 +28,21 @@ if __name__ == '__main__':
os.chdir("dist")
# create the zip file
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("..")
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_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 "Packages are ready:"
print "dist/%s "%_tgz, md5_tgz
print "dist/%s "%_zip, md5_zip
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"