Commit d4a47c23 by sikang

bug fix

parent 1e5c3cda
......@@ -323,10 +323,10 @@ class Function:
target = "/Users/connor/Documents/apks"
img_path = "../../app/src/main/res/drawable-xxhdpi"
shutil.rmtree(target+"/cache")
if not os.path.exists(target+"/cache"):
os.makedirs(target+"/cache")
shutil.rmtree(target+"/cache")
# 移除
shutil.copy("%s/logo.png" % img_path, "%s/cache/logo.png" % target)
try:
......@@ -345,7 +345,7 @@ class Function:
os.remove("%s/script/api_mapping" % config['root'])
except:
print("")
try:
shutil.copy("%s/cache/top.png" % target, "%s/top.png" % img_path)
shutil.copy("%s/cache/api_mapping" %
......
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