encode utf-8

This commit is contained in:
AloneMonkey 2017-12-07 10:58:48 +08:00
parent 8b48e4a16e
commit dbe5f0c0e3
1 changed files with 2 additions and 2 deletions

View File

@ -46,9 +46,9 @@ def gen_ipa(target):
app_name = file_dict["app"]
for key, value in file_dict.items():
if key != "app":
shutil.move(target+"/"+key, target + "/" + app_name + "/" + value);
shutil.move(target +"/"+ key, target + "/" + app_name + "/" + value);
(shotname,extension) = os.path.splitext(app_name)
os.system("zip -qr %s.ipa ./Payload" % shotname);
os.system(u''.join(("zip -qr ", shotname, ".ipa ./Payload")).encode('utf-8').strip());
os.system("rm -rf ./Payload");
except Exception as e:
print e