更改构建配置

This commit is contained in:
星外之神 2022-05-20 18:20:14 +08:00
parent e1fb2a6ecf
commit 332b47ede1

View File

@ -38,9 +38,24 @@ jobs:
echo y | 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 echo y | 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
mv ./out/main.exe ./out/pypvz.exe mv ./out/main.exe ./out/pypvz.exe
- name: "Upload binaries"
uses: actions/upload-artifact@v2
with:
name: Current(Compiled by MSVC)
path: ./out
release:
needs: [Windows]
runs-on: windows-latest
steps:
- uses: actions/checkout@v2
- uses: actions/download-artifact@v2
continue-on-error: true
with:
path: C:/_/artifacts
- uses: ncipollo/release-action@v1 - uses: ncipollo/release-action@v1
with: with:
allowUpdates: true allowUpdates: true
tag: Current(Compiled by MSVC) tag: all
artifacts: ./out/*.exe artifacts: C:/_/artifacts/*.exe
token: ${{ secrets.GITHUB_TOKEN }} token: ${{ secrets.GITHUB_TOKEN }}