From aa5caa2549d725f0266aff7122992392fbe9024c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=98=9F=E5=A4=96=E4=B9=8B=E7=A5=9E?= Date: Sat, 18 Jun 2022 12:19:05 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E6=9E=84=E5=BB=BA=E8=AF=B4?= =?UTF-8?q?=E6=98=8E=E5=8F=8A=E4=B8=B4=E6=97=B6=E6=96=87=E4=BB=B6=E5=90=8D?= =?UTF-8?q?=E7=A7=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitignore | 3 ++- README.md | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/.gitignore b/.gitignore index ebfb375..a4712bc 100644 --- a/.gitignore +++ b/.gitignore @@ -1,6 +1,7 @@ # 忽略构建内容 out/ -build/ +test-build/ +release/ # 忽略调试内容 .vscode/ __pycache__/ diff --git a/README.md b/README.md index 8c89457..f189d7f 100644 --- a/README.md +++ b/README.md @@ -102,7 +102,7 @@ nuitka --mingw64 --standalone ` --onefile ` --show-progress ` --show-memory ` - --output-dir=out ` + --output-dir=D:\17265\Documents\GitHub\pypvz\release ` --windows-icon-from-ico=pypvz.ico ` --include-data-dir=resources=resources ` --include-data-file=C:\Users\17265\AppData\Local\Programs\Python\Python310\Lib\site-packages\pygame\libogg-0.dll=libogg-0.dll ` @@ -119,7 +119,7 @@ nuitka --mingw64 --standalone ` main.py ``` -* 其中`C:\Users\17265\AppData\Local\Programs\Python\Python310\Lib\site-packages\pygame\xxx.dll`应当替换为`xxx.dll`实际所在路径 +* 其中`C:\Users\17265\AppData\Local\Programs\Python\Python310\Lib\site-packages\pygame\xxx.dll`应当替换为`xxx.dll`实际所在路径,`--output-dir=`后应当跟实际需要输出的路径,绝对路径或者相对路径均可 * 由于仅复制了`opus`与`vorbis`的解码器,故要求所有背景音乐都要以opus或vorbis编码 * `--windows-product-version=`表示版本号信息,所跟内容格式必须为`x.x.x.x` * 建议开启`--lto=yes`选项优化链接,如果编译失败可以关闭此选项