更新构建规则
This commit is contained in:
parent
48317624c6
commit
3660801790
6
.github/workflows/build.yml
vendored
6
.github/workflows/build.yml
vendored
@ -7,6 +7,8 @@ concurrency:
|
|||||||
on:
|
on:
|
||||||
pull_request:
|
pull_request:
|
||||||
push:
|
push:
|
||||||
|
branches:
|
||||||
|
- master
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
windows:
|
windows:
|
||||||
@ -40,13 +42,13 @@ jobs:
|
|||||||
- name: Build pypvz package
|
- name: Build pypvz package
|
||||||
run: |
|
run: |
|
||||||
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-windows-msvc-x64.exe
|
mv ./out/main.exe ./out/pypvz-windows-python${{ matrix.python_version }}-msvc-x64.exe
|
||||||
|
|
||||||
# artifact压缩包处上传包含exe和运行环境的文件夹
|
# artifact压缩包处上传包含exe和运行环境的文件夹
|
||||||
- name: "Upload binaries"
|
- name: "Upload binaries"
|
||||||
uses: actions/upload-artifact@v2
|
uses: actions/upload-artifact@v2
|
||||||
with:
|
with:
|
||||||
name: artifact
|
name: artifact-python-${{ matrix.python_version }}
|
||||||
path: ./out/*.dist
|
path: ./out/*.dist
|
||||||
|
|
||||||
# release处发布单文件可执行版exe
|
# release处发布单文件可执行版exe
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user