From fc256aa0a0c447d5fded69949f6f889f24a6f040 Mon Sep 17 00:00:00 2001 From: xaoyaoo Date: Thu, 4 Jan 2024 15:15:14 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E6=89=93=E5=8C=85=EF=BC=8C?= =?UTF-8?q?=E6=9C=AA=E5=B0=86=E8=B5=84=E6=BA=90=E6=89=93=E5=8C=85=E8=BF=9B?= =?UTF-8?q?=E5=8E=BB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/publish.yml | 1 + tests/build_exe.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 62675e6..821fd2a 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -42,6 +42,7 @@ jobs: - name: Build exe file run: | python tests/build_exe.py + cat dist/pywxdump.spec - name: Build Executable run: | diff --git a/tests/build_exe.py b/tests/build_exe.py index b0b1991..0198ee2 100644 --- a/tests/build_exe.py +++ b/tests/build_exe.py @@ -107,7 +107,7 @@ if package_path: for root, dirs, files in os.walk(os.path.join(root_path,"ui")): for file in files: file_path = os.path.join(root, file) - datas_741258.append(f'''(r'{file_path}', r'{os.path.dirname(file_path.replace(package_path, ""))}' )''') + datas_741258.append(f'''(r'{file_path}', r'{os.path.dirname(file_path.replace(package_path, "")[1:])}' )''') datas_741258 = ",\n".join(datas_741258) print(datas_741258) # ็”Ÿๆˆ spec ๆ–‡ไปถ