Commit c659e576 by sikang

bug fix

parent d4a47c23
...@@ -323,9 +323,11 @@ class Function: ...@@ -323,9 +323,11 @@ class Function:
target = "/Users/connor/Documents/apks" target = "/Users/connor/Documents/apks"
img_path = "../../app/src/main/res/drawable-xxhdpi" img_path = "../../app/src/main/res/drawable-xxhdpi"
shutil.rmtree(target+"/cache")
if not os.path.exists(target+"/cache"): if not os.path.exists(target+"/cache"):
os.makedirs(target+"/cache") os.makedirs(target+"/cache")
else:
shutil.rmtree(target+"/cache")
# 移除 # 移除
shutil.copy("%s/logo.png" % img_path, "%s/cache/logo.png" % target) shutil.copy("%s/logo.png" % img_path, "%s/cache/logo.png" % target)
......
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