From 120f67b8b37df131d209cbadde3b87b560dc90e4 Mon Sep 17 00:00:00 2001 From: lixianjing Date: Fri, 15 Sep 2023 17:59:47 +0800 Subject: [PATCH] improve build scripts --- docs/changes.md | 1 + scripts/app_helper_base.py | 2 ++ 2 files changed, 3 insertions(+) diff --git a/docs/changes.md b/docs/changes.md index 2920ff7a2..ab741efc4 100644 --- a/docs/changes.md +++ b/docs/changes.md @@ -1,6 +1,7 @@ # 最新动态 2023/09/15 * 修复 path\_basename\_ex 的对于混合斜杆不支持的问题(感谢智明提供补丁) + * 增加scons清除的时候顺便把lib和bin目录也删除功能(感谢智明提供补丁) 2023/09/14 * 修复label自动换行并且置顶时文本会往下移动几个像素的问题(感谢颖健提供补丁) diff --git a/scripts/app_helper_base.py b/scripts/app_helper_base.py index d97d3ada1..ec39ebaa4 100644 --- a/scripts/app_helper_base.py +++ b/scripts/app_helper_base.py @@ -404,6 +404,8 @@ class AppHelperBase: for iter in self.DEPENDS_LIBS: for so in iter['shared_libs']: self.awtk.cleanSharedLib(self.APP_BIN_DIR, so) + shutil.rmtree(self.APP_BIN_DIR); + shutil.rmtree(self.APP_LIB_DIR); def genIdlAndDef(self): if self.DEF_FILE: