From 7940cf870a8045bed3f70038da33ebe85c5965d1 Mon Sep 17 00:00:00 2001 From: ThomasV Date: Tue, 18 Dec 2012 17:14:38 +0100 Subject: [PATCH] include version number in the filename of android package --- make_packages | 11 +++++++---- 1 files changed, 7 insertions(+), 4 deletions(-) diff --git a/make_packages b/make_packages index 67cb5f3..a790c87 100755 --- 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" -- 1.7.1