Skip to content

Commit

Permalink
add password to script
Browse files Browse the repository at this point in the history
  • Loading branch information
ThomasV committed Dec 16, 2013
1 parent e290ea6 commit af045b4
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions make_packages
Expand Up @@ -38,11 +38,16 @@ if __name__ == '__main__':
e4a_name = "e4a-%s.zip"%version
e4a_name2 = e4a_name.replace(".","")
os.system( "mv %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_name2, 'r').read()).digest().encode('hex')
import getpass
password = getpass.getpass("Password:")
for f in os.listdir("."):
os.system( "gpg --sign --armor --detach --passphrase \"%s\" %s"%(password, f) )

md5_tgz = hashlib.md5(file(_tgz, 'r').read()).digest().encode('hex')
md5_zip = hashlib.md5(file(_zip, 'r').read()).digest().encode('hex')
md5_android = hashlib.md5(file(e4a_name2, 'r').read()).digest().encode('hex')
os.chdir("..")

print ""
print "Packages are ready:"
Expand Down

0 comments on commit af045b4

Please sign in to comment.