From e4c5a30cb51ac42b63d31e0f8b7071823104dbd3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=98=9F=E5=A4=96=E4=B9=8B=E7=A5=9E?= Date: Mon, 4 Apr 2022 23:17:37 +0800 Subject: [PATCH] =?UTF-8?q?=E6=89=93=E5=8C=85libvorbisfile-3.dll?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index f162da0..c3bb9c1 100644 --- a/README.md +++ b/README.md @@ -62,10 +62,18 @@ python main.py 在仓库所在文件夹执行: -``` shell +``` powershell nuitka --mingw --standalone --onefile --show-progress --show-memory --windows-disable-console --output-dir=out --windows-icon-from-ico=pypvz.ico --include-data-dir=resources=resources main.py ``` +加了背景音乐播放功能之后需要执行: + +``` powershell +nuitka --mingw --standalone --onefile --show-progress --show-memory --windows-disable-console --output-dir=out --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\libvorbisfile-3.dll=libvorbisfile-3.dll main.py +``` + +其中,`C:\Users\17265\AppData\Local\Programs\Python\Python310\Lib\site-packages\pygame\libvorbisfile-3.dll`应当替换为`libvorbisfile-3.dll`实际所在路径 + 可执行文件生成路径为`./out/main.exe` ## 截屏