updates for android

This commit is contained in:
ThomasV 2015-06-09 23:18:32 +02:00
parent ee6b718ea4
commit ddef165e18
3 changed files with 6 additions and 9 deletions

View File

@ -34,7 +34,5 @@ if __name__ == '__main__':
# 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("mv %s %s"%(e4a_name, e4a_name2))
print "dist/%s"%e4a_name2
print "dist/%s"%e4a_name

View File

@ -55,10 +55,9 @@ from versions import android_template, android_page
with open(android_template) as f:
string = f.read()
e4a_name = "e4a-%s.zip"%version
e4a_zipname = e4a_name.replace(".","")
string = string.replace("##VERSION##",version)
string = string.replace("##ZIPNAME##",e4a_zipname)
e4a_zipname = "e4a-%s.zip"%version
string = string.replace("##VERSION##", version)
string = string.replace("##ZIPNAME##", e4a_zipname)
with open(android_page,'w') as f:
f.write(string)

View File

@ -370,7 +370,6 @@ if __name__ == '__main__':
# config is an object passed to the various constructors (wallet, interface, gui)
if is_android:
config_options = {
'portable': True,
'verbose': True,
'gui': 'android',
'auto_connect': True,
@ -398,7 +397,8 @@ if __name__ == '__main__':
gui_name = config.get('gui', 'qt') if args.cmd == 'gui' else 'cmdline'
# initialize plugins.
init_plugins(config, is_bundle or is_local or is_android, gui_name)
if not is_android:
init_plugins(config, is_bundle or is_local or is_android, gui_name)
# call function attached to parser
args.func(config)