更新 .github/workflows/build-exe.yml

This commit is contained in:
miu
2026-03-15 09:24:15 +08:00
Unverified
parent 110a0a1f1c
commit 4d491908cb

View File

@@ -13,22 +13,21 @@ jobs:
sudo apt-get update sudo apt-get update
sudo apt-get install -y wine64 wine32 sudo apt-get install -y wine64 wine32
wine --version # 安装后验证 wine --version # 安装后验证
- name: Install Windows dependencies using Wine Python
run: |
# 使用 Wine 运行 Windows 版本的 Python
wine python -m pip install --upgrade pip
wine python -m pip install pyinstaller keyboard pywin32
# 环境已预装,直接验证 # 环境已预装,直接验证
- name: Verify tools - name: Verify tools
run: | run: |
node --version node --version
python --version wine python --version
wine --version # 确认 wine 是否存在full 镜像很可能包含 wine --version # 确认 wine 是否存在full 镜像很可能包含
- name: Install Python dependencies - name: Build EXE using Wine Python
run: | run: |
pip install pyinstaller keyboard pywin32 wine python -m PyInstaller --onefile --windowed --name Shortcut_Sync_PotPlayer main.py
- name: Build EXE
run: |
# 直接在原生环境下运行full 镜像可能无需 wine 包装
pyinstaller --onefile --windowed --name Shortcut_Sync_PotPlayer main.py
- name: Upload Artifact - name: Upload Artifact
uses: actions/upload-artifact@v4 uses: actions/upload-artifact@v4