From 74195b59ebf39957098259519879d6fe7b6ceb1e Mon Sep 17 00:00:00 2001 From: Asriel Camora Date: Thu, 2 Nov 2023 00:36:49 -0700 Subject: [PATCH] Fix failed to install --- .github/create_unofficial.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/create_unofficial.py b/.github/create_unofficial.py index 2497469..778fa47 100644 --- a/.github/create_unofficial.py +++ b/.github/create_unofficial.py @@ -11,7 +11,7 @@ subprocess.check_call(['7z', 'd', UNOFFICIAL_ZIP, f"{PROJECT_NAME}.json"]) with zipfile.ZipFile(UNOFFICIAL_ZIP) as file: - members = file.namelist() + members = [member for member in file.namelist() if member in (f"{PROJECT_NAME}.dll", f"{PROJECT_NAME}.deps.json", f"{PROJECT_NAME}.json", f"{PROJECT_NAME}.pdb")] subprocess.check_call(['7z', 'rn', UNOFFICIAL_ZIP] + list(chain.from_iterable((m, m.replace(PROJECT_NAME, f"{PROJECT_NAME}Unofficial")) for m in members)))