打包libvorbisfile-3.dll
This commit is contained in:
parent
a32abdf1cb
commit
e4c5a30cb5
10
README.md
10
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`
|
||||
|
||||
## 截屏
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user