修复构建错误

This commit is contained in:
星外之神 2022-05-20 17:22:10 +08:00
parent e1e7dc9b27
commit babeb1303b

View File

@ -1,4 +1,4 @@
name: Nuitka tests name: Build
# makes little sense, spell-checker: disable # makes little sense, spell-checker: disable
on: on:
pull_request: pull_request:
@ -35,12 +35,12 @@ jobs:
- name: Build pypvz package - name: Build pypvz package
run: | run: |
pip install --no-python-version-warning --disable-pip-version-check pygame python -m nuitka --standalone --onefile --show-progress --show-memory --output-dir=out --windows-icon-from-ico=pypvz.ico --include-data-dir=resources=resources --include-data-file=c:\hostedtoolcache\windows\python\3.10.4\x64\lib\site-packages\pygame\libogg-0.dll=libogg-0.dll --include-data-file=c:\hostedtoolcache\windows\python\3.10.4\x64\lib\site-packages\pygame\libopus-0.dll=libopus-0.dll --include-data-file=c:\hostedtoolcache\windows\python\3.10.4\x64\lib\site-packages\pygame\libopusfile-0.dll=libopusfile-0.dll --include-data-file=c:\hostedtoolcache\windows\python\3.10.4\x64\lib\site-packages\pygame\libvorbisfile-3.dll=libvorbisfile-3.dll --include-data-file=c:\hostedtoolcache\windows\python\3.10.4\x64\lib\site-packages\pygame\libvorbis-0.dll=libvorbis-0.dll --windows-disable-console main.py
python -m nuitka --standalone --onefile --show-progress --show-memory --output-dir=out --windows-icon-from-ico=pypvz.ico --include-data-dir=resources=resources --include-data-file=C:\Users\runneradmin\AppData\Local\Programs\Python\Python310\Lib\site-packages\pygame\libogg-0.dll=libogg-0.dll --include-data-file=C:\Users\runneradmin\AppData\Local\Programs\Python\Python310\Lib\site-packages\pygame\libopus-0.dll=libopus-0.dll --include-data-file=C:\Users\runneradmin\AppData\Local\Programs\Python\Python310\Lib\site-packages\pygame\libopusfile-0.dll=libopusfile-0.dll --include-data-file=C:\Users\runneradmin\AppData\Local\Programs\Python\Python310\Lib\site-packages\pygame\libvorbisfile-3.dll=libvorbisfile-3.dll --include-data-file=C:\Users\runneradmin\AppData\Local\Programs\Python\Python310\Lib\site-packages\pygame\libvorbis-0.dll=libvorbis-0.dll --windows-disable-console main.py mv ./out/main.exe ./out/pypvz.exe
- uses: ncipollo/release-action@v1 - uses: ncipollo/release-action@v1
with: with:
allowUpdates: true allowUpdates: true
tag: all tag: current
artifacts: ./out/*.exe artifacts: ./out/*.exe
token: ${{ secrets.GITHUB_TOKEN }} token: ${{ secrets.GITHUB_TOKEN }}