更新 .github/workflows/build-exe.yml
This commit is contained in:
29
.github/workflows/build-exe.yml
vendored
29
.github/workflows/build-exe.yml
vendored
@@ -7,30 +7,15 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Install Wine
|
- name: Install dependencies
|
||||||
run: |
|
run: |
|
||||||
sudo dpkg --add-architecture i386
|
wine-xvfb python -m pip install --upgrade pip
|
||||||
sudo apt-get update
|
wine-xvfb python -m pip install pyinstaller keyboard pywin32
|
||||||
sudo apt-get install -y wine64 wine32
|
|
||||||
wine --version # 安装后验证
|
- name: Build EXE
|
||||||
|
|
||||||
- name: Install Windows dependencies using Wine Python
|
|
||||||
run: |
|
run: |
|
||||||
# 使用 Wine 运行 Windows 版本的 Python
|
wine-xvfb python -m PyInstaller --onefile --windowed --name Shortcut_Sync_PotPlayer main.py
|
||||||
wine python -m pip install --upgrade pip
|
|
||||||
wine python -m pip install pyinstaller keyboard pywin32
|
|
||||||
|
|
||||||
# 环境已预装,直接验证
|
|
||||||
- name: Verify tools
|
|
||||||
run: |
|
|
||||||
node --version
|
|
||||||
wine python --version
|
|
||||||
wine --version # 确认 wine 是否存在,full 镜像很可能包含
|
|
||||||
|
|
||||||
- name: Build EXE using Wine Python
|
|
||||||
run: |
|
|
||||||
wine python -m 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
|
||||||
with:
|
with:
|
||||||
|
|||||||
Reference in New Issue
Block a user