From 2cb83c53c550209f5facb244fd55f33b7cbc1805 Mon Sep 17 00:00:00 2001 From: KostromDan Date: Fri, 15 Mar 2024 03:45:53 +0300 Subject: [PATCH] 2.2.2 Fixed stupid mistake. --- MDGLogic/MergingThread.py | 5 ++--- built_to_exe.py | 3 ++- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/MDGLogic/MergingThread.py b/MDGLogic/MergingThread.py index 33a2714..7ce3b8c 100644 --- a/MDGLogic/MergingThread.py +++ b/MDGLogic/MergingThread.py @@ -52,9 +52,8 @@ def run(self) -> None: logging.info(f'Started merging of {decompiled_mod}.') for file in os.listdir(path_to_mod): path_to_file = os.path.join(path_to_mod, file) - for skip_file in SKIP: - if file.startswith(skip_file): - continue + if len(list(filter(lambda skip_str: file.startswith(skip_str), SKIP))) > 0: + continue if os.path.isfile(path_to_file): if merge_resources: shutil.copy(path_to_file, PathUtils.MERGED_MDK_RESOURCES_PATH) diff --git a/built_to_exe.py b/built_to_exe.py index 5a6c981..a5e6d07 100644 --- a/built_to_exe.py +++ b/built_to_exe.py @@ -4,11 +4,12 @@ from MDGUtil import PathUtils from MDGUtil.FileUtils import remove_folder -VERSION = '2.2.1' +VERSION = '2.2.2' def main(): remove_folder('build') + remove_folder('local') remove_folder('dist') remove_folder(PathUtils.RESULT_FOLDER_PATH) remove_folder(PathUtils.TMP_FOLDER_PATH)