From 2e9a8bf3efb9649f0d765973f4191b2d952a459f Mon Sep 17 00:00:00 2001 From: xaoyo Date: Tue, 28 Nov 2023 18:21:06 +0800 Subject: [PATCH] publish test --- tests/build_exe.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/build_exe.py b/tests/build_exe.py index 590e0eb..ee36dc5 100644 --- a/tests/build_exe.py +++ b/tests/build_exe.py @@ -83,7 +83,7 @@ if package_path: # 生成 spec 文件 spec_content = spec_content.format(root_path=root_path, hidden_imports=hidden_imports) spec_file = os.path.join("dist", "pywxdump.spec") - with open(spec_file, 'w') as f: + with open(spec_file, 'w', encoding="utf-8") as f: f.write(spec_content.strip()) # 执行打包命令