Commit d4a2eabc by sikang

bug fiz

parent e26c1ba1
...@@ -241,8 +241,6 @@ class Function: ...@@ -241,8 +241,6 @@ class Function:
if just_print: if just_print:
return return
Function.create_desc(config)
file_name = "%s_%s"\ file_name = "%s_%s"\
% (config['corp_id'], config['app_name'].replace(" ", "_")) % (config['corp_id'], config['app_name'].replace(" ", "_"))
target = "/Users/connor/Documents/apks" target = "/Users/connor/Documents/apks"
...@@ -251,6 +249,8 @@ class Function: ...@@ -251,6 +249,8 @@ class Function:
if not os.path.exists(target+"/"+file_name): if not os.path.exists(target+"/"+file_name):
os.makedirs(target+"/"+file_name) os.makedirs(target+"/"+file_name)
Function.create_desc(config)
try: try:
shutil.move("%s/%s.apk" % (target, file_name), shutil.move("%s/%s.apk" % (target, file_name),
"%s/%s/%s.apk" % (target, file_name, file_name)) "%s/%s/%s.apk" % (target, file_name, file_name))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment