X-Git-Url: https://git.novaco.in/?p=electrum-nvc.git;a=blobdiff_plain;f=make_packages;h=c2eb56fbd0e3367bbf2b7c0a189eafbc86674072;hp=c2ffe4c8c164c1d6d2d40502bfb8f303aff8c813;hb=HEAD;hpb=af045b47c0dd9b66f75205076b20aeb5b2a23f8b diff --git a/make_packages b/make_packages index c2ffe4c..c2eb56f 100755 --- a/make_packages +++ b/make_packages @@ -5,37 +5,36 @@ from lib.version import ELECTRUM_VERSION as version if __name__ == '__main__': import sys, re, shutil, os, hashlib - if not ( os.path.exists('aes') and os.path.exists('ecdsa') ): - print "aes and ecdsa are missing. copy them locally before." + if not ( os.path.exists('packages')): + print "The packages directory is missing." sys.exit() - os.system("python mki18n.py") + # os.system("python mki18n.py") os.system("pyrcc4 icons.qrc -o gui/qt/icons_rc.py") os.system("python setup.py sdist --format=zip,gztar") - _tgz="Electrum-%s.tar.gz"%version - _zip="Electrum-%s.zip"%version + _tgz="Electrum-NVC-%s.tar.gz"%version + _zip="Electrum-NVC-%s.zip"%version # android - os.system('rm -rf dist/e4a-%s'%version) - os.mkdir('dist/e4a-%s'%version) - shutil.copyfile("electrum",'dist/e4a-%s/e4a.py'%version) - shutil.copytree("ecdsa",'dist/e4a-%s/ecdsa'%version) - shutil.copytree("aes",'dist/e4a-%s/aes'%version) - shutil.copytree("lib",'dist/e4a-%s/lib'%version) - os.mkdir('dist/e4a-%s/gui'%version) + os.system('rm -rf dist/en4a-%s'%version) + os.mkdir('dist/en4a-%s'%version) + shutil.copyfile("electrum-nvc",'dist/en4a-%s/en4a.py'%version) + shutil.copytree("packages",'dist/en4a-%s/packages'%version) + shutil.copytree("lib",'dist/en4a-%s/lib'%version) + os.mkdir('dist/en4a-%s/gui'%version) for n in ['android.py']: - shutil.copy("gui/%s"%n,'dist/e4a-%s/gui'%version) - open('dist/e4a-%s/gui/__init__.py'%version,'w').close() + shutil.copy("gui/%s"%n,'dist/en4a-%s/gui'%version) + open('dist/en4a-%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) ) + os.system( "zip -r en4a-%s.zip en4a-%s"%(version, version) ) + os.system( "rm -rf en4a-%s"%(version) ) # change filename because some 3G carriers do not allow users to download a zip file... - e4a_name = "e4a-%s.zip"%version + e4a_name = "en4a-%s.zip"%version e4a_name2 = e4a_name.replace(".","") os.system( "mv %s %s"%(e4a_name, e4a_name2) )