From d316eb987d2fb781a5b9191670dc571e05cfd04d Mon Sep 17 00:00:00 2001 From: SpenserCai Date: Sun, 8 Oct 2023 12:44:36 +0800 Subject: [PATCH] fixbug --- scripts/base.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/scripts/base.py b/scripts/base.py index 5012293..e2d9050 100644 --- a/scripts/base.py +++ b/scripts/base.py @@ -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")):