Files
Shortcut_Sync_PotPlayer/.github/workflows/build-exe.yml
T
miu f12d02bb4a
Build Windows EXE with Full Image / build (push) Failing after 2m20s
更新 .github/workflows/build-exe.yml
2026-03-15 08:58:27 +08:00

30 lines
844 B
YAML

name: Build Windows EXE with Full Image
on: [push]
jobs:
build:
runs-on: Ubuntu_docker_act
steps:
- uses: actions/checkout@v4
# 环境已预装,直接验证
- name: Verify tools
run: |
node --version
python --version
wine --version # 确认 wine 是否存在,full 镜像很可能包含
- name: Install Python dependencies
run: |
pip install pyinstaller keyboard pywin32
- name: Build EXE
run: |
# 直接在原生环境下运行,full 镜像可能无需 wine 包装
pyinstaller --onefile --windowed --name Shortcut_Sync_PotPlayer main.py
- name: Upload Artifact
uses: actions/upload-artifact@v4
with:
name: Shortcut_Sync_PotPlayer
path: dist/Shortcut_Sync_PotPlayer.exe