|
|
@ -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" |
|
|
|
|
|
|
|