From 4d491908cbf258014831ec2c781e2371893ca46b Mon Sep 17 00:00:00 2001 From: miu <205594122@qq.com> Date: Sun, 15 Mar 2026 09:24:15 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20.github/workflows/build-ex?= =?UTF-8?q?e.yml?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/build-exe.yml | 19 +++++++++---------- 1 file changed, 9 insertions(+), 10 deletions(-) diff --git a/.github/workflows/build-exe.yml b/.github/workflows/build-exe.yml index 82b0e8e..765b347 100644 --- a/.github/workflows/build-exe.yml +++ b/.github/workflows/build-exe.yml @@ -13,22 +13,21 @@ jobs: sudo apt-get update sudo apt-get install -y wine64 wine32 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 run: | node --version - python --version + wine 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: Build EXE using Wine Python + run: | + wine python -m PyInstaller --onefile --windowed --name Shortcut_Sync_PotPlayer main.py - name: Upload Artifact uses: actions/upload-artifact@v4