commit b6799a240bb2674f6b835b8402da609e22059030
Author: 星外之神 <wszqkzqk@qq.com>
Date: Fri Jun 3 20:03:55 2022 +0800
修改异常处理方式
commit dcf925ca526e66166c5b19b0b8442a32120a332d
Author: 星外之神 <wszqkzqk@qq.com>
Date: Fri Jun 3 19:51:06 2022 +0800
暂时放弃OpenGL
commit 2c0dc94c75d902aa356ee0b8350ea0aa02c84fdb
Author: 星外之神 <wszqkzqk@qq.com>
Date: Fri Jun 3 19:41:50 2022 +0800
更改非Nuitka程序图标设定
commit 1dd0894adffdafd61bd696807a6eb9d2735d4d25
Author: 星外之神 <wszqkzqk@qq.com>
Date: Fri Jun 3 19:16:21 2022 +0800
维护清理
commit b8a7fc0a66a22fae0ead9a9e4f88aa024276f078
Author: 星外之神 <wszqkzqk@qq.com>
Date: Fri Jun 3 14:43:51 2022 +0800
修复传送带模式中点击到达传送带底部的卡片没有透明度变化的bug
commit 9303304e94aabd4f955c3c186ff73525057bb133
Author: 星外之神 <wszqkzqk@qq.com>
Date: Fri Jun 3 14:21:47 2022 +0800
优化报纸僵尸设定
commit 0b9dbdc14513916dcb15dc717060faf380c1b681
Author: 星外之神 <wszqkzqk@qq.com>
Date: Fri Jun 3 14:17:26 2022 +0800
微调报纸僵尸速度
commit 44e6ce77e77fba19ebec22d08cdccf6d07246905
Author: 星外之神 <wszqkzqk@qq.com>
Date: Fri Jun 3 13:58:31 2022 +0800
清理
commit e00ed2f061ff148cbe0b38991a6ab585963ec9b3
Author: 星外之神 <wszqkzqk@qq.com>
Date: Fri Jun 3 13:58:05 2022 +0800
修复潜水僵尸只能攻击一次的bug
commit 790bc0bc5eeb206ebe769d91a4f339d050e86100
Author: 星外之神 <wszqkzqk@qq.com>
Date: Fri Jun 3 10:15:33 2022 +0800
更改构建命令
commit db86b3144ced0603c4db1e7220dbc47559b9dd87
Author: 星外之神 <wszqkzqk@qq.com>
Date: Thu Jun 2 19:03:13 2022 +0800
更改模块调用方式
commit 885f9902af79b2e23590956626e6eabe17e71931
Author: 星外之神 <wszqkzqk@qq.com>
Date: Wed Jun 1 14:15:50 2022 +0800
更新null值引用方式
commit d054ff498ba58356e9886064ae9c1a62fb0585a5
Author: 星外之神 <wszqkzqk@qq.com>
Date: Wed Jun 1 13:39:56 2022 +0800
进一步将常数性内容汇总到constants.py中
commit c4a756756b922cba8f8224b247bce7e7e7838808
Author: 星外之神 <wszqkzqk@qq.com>
Date: Fri May 27 15:23:52 2022 +0800
说明
97 lines
3.8 KiB
YAML
97 lines
3.8 KiB
YAML
name: Build
|
|
|
|
concurrency:
|
|
group: ${{ github.workflow }}-${{ github.ref }}
|
|
cancel-in-progress: true
|
|
|
|
on:
|
|
pull_request:
|
|
push:
|
|
branches:
|
|
- master
|
|
|
|
jobs:
|
|
windows:
|
|
runs-on: windows-latest
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
python_version:
|
|
- '3.10'
|
|
name: Windows Python ${{ matrix.python_version }}
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
|
|
- uses: ilammy/msvc-dev-cmd@v1
|
|
|
|
- name: Use Python ${{ matrix.python_version }}
|
|
uses: actions/setup-python@v2
|
|
with:
|
|
python-version: ${{ matrix.python_version }}
|
|
|
|
- name: 🧳 Install dependencies
|
|
run: |
|
|
echo y | pip install --no-python-version-warning --disable-pip-version-check pyinstaller
|
|
echo y | pip install --no-python-version-warning --disable-pip-version-check nuitka
|
|
echo y | pip install --no-python-version-warning --disable-pip-version-check zstandard
|
|
echo y | pip install --no-python-version-warning --disable-pip-version-check pygame
|
|
echo y | pip install --no-python-version-warning --disable-pip-version-check ordered-set
|
|
|
|
# 使用pyinstaller构建
|
|
- name: Build pypvz with pyinstaller
|
|
run: |
|
|
pyinstaller -F main.py `
|
|
-n pypvz-with-python${{ matrix.python_version }}-pyinstaller-x64.exe `
|
|
--distpath ./out `
|
|
--noconsole `
|
|
--add-data="resources;./resources" `
|
|
--add-data="pypvz-exec-logo.png;./pypvz-exec-logo.png" `
|
|
-i ./pypvz.ico
|
|
|
|
- name: Release the version built by pyinstaller
|
|
uses: ncipollo/release-action@v1
|
|
with:
|
|
allowUpdates: true
|
|
tag: Current.Version.Built.with.Pyinstaller
|
|
artifacts: ./out/*pyinstaller*.exe
|
|
token: ${{ secrets.GITHUB_TOKEN }}
|
|
|
|
# 使用Nuitka构建
|
|
- name: Show nuitka version
|
|
run: |
|
|
Get-ChildItem env:
|
|
python -m nuitka --version
|
|
|
|
- name: Build pypvz with Nuitka
|
|
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\${{ matrix.python_version }}*\x64\lib\site-packages\pygame\libogg-0.dll=libogg-0.dll `
|
|
--include-data-file=c:\hostedtoolcache\windows\python\${{ matrix.python_version }}*\x64\lib\site-packages\pygame\libopus-0.dll=libopus-0.dll `
|
|
--include-data-file=c:\hostedtoolcache\windows\python\${{ matrix.python_version }}*\x64\lib\site-packages\pygame\libopusfile-0.dll=libopusfile-0.dll `
|
|
--include-data-file=c:\hostedtoolcache\windows\python\${{ matrix.python_version }}*\x64\lib\site-packages\pygame\libvorbisfile-3.dll=libvorbisfile-3.dll `
|
|
--include-data-file=c:\hostedtoolcache\windows\python\${{ matrix.python_version }}*\x64\lib\site-packages\pygame\libvorbis-0.dll=libvorbis-0.dll `
|
|
--windows-disable-console `
|
|
-o ./out/pypvz-with-python${{ matrix.python_version }}-nuitka-msvc-x64.exe `
|
|
main.py
|
|
|
|
# artifact压缩包处上传包含exe和运行环境的文件夹
|
|
- name: "Upload binaries"
|
|
uses: actions/upload-artifact@v2
|
|
with:
|
|
name: artifact-python-${{ matrix.python_version }}
|
|
path: ./out/*.dist
|
|
|
|
- name: Release the version built by nuitka
|
|
uses: ncipollo/release-action@v1
|
|
with:
|
|
allowUpdates: true
|
|
tag: Latest
|
|
artifacts: ./out/*nuitka*.exe
|
|
token: ${{ secrets.GITHUB_TOKEN }}
|