Merge pull request #15 from SpenserCai/dev

fixbug
main
SpenserCai 2023-10-08 12:45:16 +08:00 committed by GitHub
commit b7289de6b4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 7 additions and 1 deletions

View File

@ -3,7 +3,7 @@ Author: SpenserCai
Date: 2023-08-23 23:12:27
version:
LastEditors: SpenserCai
LastEditTime: 2023-09-24 22:37:16
LastEditTime: 2023-10-08 12:43:57
Description: file content
'''
import os
@ -68,6 +68,12 @@ def download_bin():
# 如果bin目录下存在location目录删除
if os.path.isdir(os.path.join(bin_path, "location")):
shutil.rmtree(os.path.join(bin_path, "location"))
# 如果bin目录下存在website目录删除
if os.path.isdir(os.path.join(bin_path, "website")):
shutil.rmtree(os.path.join(bin_path, "website"))
# 如果bin目录下存在dist目录删除
if os.path.isdir(os.path.join(bin_path, "dist")):
shutil.rmtree(os.path.join(bin_path, "dist"))
# 判断release目录是否存在如果存在把里面的文件移动到bin目录下然后删除release目录
if os.path.isdir(os.path.join(bin_path, "release")):
for file in os.listdir(os.path.join(bin_path, "release")):