This commit is contained in:
星外之神 2022-03-31 23:22:29 +08:00
parent 79befa443a
commit bcf2eb8b27

View File

@ -35,13 +35,13 @@ python main.py
## Windows单文件封装 ## Windows单文件封装
先在仓库所在文件夹执行 先在仓库所在文件夹执行
``` shell ``` shell
nuitka --mingw --standalone --onefile --show-progress --show-memory --output-dir=out --windows-icon-from-ico=out/pypvz.ico main.py nuitka --mingw --standalone --onefile --show-progress --show-memory --output-dir=out --windows-icon-from-ico=out/pypvz.ico main.py
``` ```
再及时在单文件编译前于同一文件夹中执行 再及时在单文件编译前于同一文件夹中执行注意执行时间也不要早于Nuitka解析文件结构开始时间
``` powershell ``` powershell
mkdir out\main.dist\pygame mkdir out\main.dist\pygame