fix for issue 184
[electrum-nvc.git] / make_packages
index 5085cff..4863de7 100755 (executable)
@@ -25,17 +25,19 @@ if __name__ == '__main__':
     shutil.copytree("aes",'dist/e4a-%s/aes'%version)
     shutil.copytree("lib",'dist/e4a-%s/lib'%version)
     os.mkdir('dist/e4a-%s/gui'%version)
-    shutil.copy("gui/gui_android.py",'dist/e4a-%s/gui'%version)
-    shutil.copy("gui/__init__.py",'dist/e4a-%s/gui'%version)
+    for n in ['gui_android.py', 'pyqrnative.py', 'bmp.py']:
+        shutil.copy("gui/%s"%n,'dist/e4a-%s/gui'%version)
+    open('dist/e4a-%s/gui/__init__.py'%version,'w').close()
 
     os.chdir("dist")
     # create the zip file
     os.system( "zip -r e4a-%s.zip e4a-%s"%(version, version) )
+    os.system( "rm -rf e4a-%s"%(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.system( "mv %s %s"%(e4a_name, e4a_name2) )
     os.chdir("..")
 
     md5_tgz = hashlib.md5(file('dist/'+_tgz, 'r').read()).digest().encode('hex')