From 40c89b14ba5682a8c399e54563c163cf74a280df Mon Sep 17 00:00:00 2001 From: xunbu Date: Mon, 25 Aug 2025 14:41:40 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B0=9D=E8=AF=95=E7=94=9F=E6=88=90macos-x86?= =?UTF-8?q?=E6=9E=B6=E6=9E=84=E5=8C=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/build-macos-x86.yml | 3 ++- .github/workflows/build-macos.yml | 3 ++- .github/workflows/build-windows.yml | 3 ++- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build-macos-x86.yml b/.github/workflows/build-macos-x86.yml index 496867e..98a0adf 100644 --- a/.github/workflows/build-macos-x86.yml +++ b/.github/workflows/build-macos-x86.yml @@ -44,7 +44,8 @@ jobs: # 步骤 7: 运行 PyInstaller 构建 x86_64 应用 - name: Build the x86_64 application with PyInstaller run: | - uv run --no-dev pyinstaller lite_mac_x86_64.spec --noconfirm + uv pip install pyinstaller + uv run --no-dev pyinstaller lite_mac_x86_64.spec --noconfirm --clean -y # 步骤 8: 从代码中获取应用版本号 - name: Get application version diff --git a/.github/workflows/build-macos.yml b/.github/workflows/build-macos.yml index cdb54b2..8baaa5d 100644 --- a/.github/workflows/build-macos.yml +++ b/.github/workflows/build-macos.yml @@ -43,7 +43,8 @@ jobs: # universal2 的配置已移至 lite_mac.spec 文件中,所以命令行很简洁。 - name: Build the application with PyInstaller run: | - uv run --no-dev pyinstaller lite_mac.spec --noconfirm + uv pip install pyinstaller + uv run --no-dev pyinstaller lite_mac.spec --noconfirm --clean -y # 步骤 8: 从代码中获取应用版本号 - name: Get application version diff --git a/.github/workflows/build-windows.yml b/.github/workflows/build-windows.yml index a719abd..59d51c2 100644 --- a/.github/workflows/build-windows.yml +++ b/.github/workflows/build-windows.yml @@ -40,7 +40,8 @@ jobs: # 第 6 步: 运行 PyInstaller - name: Build the application with PyInstaller run: | - uv run --no-dev pyinstaller lite.spec --noconfirm + uv pip install pyinstaller + uv run --no-dev pyinstaller lite.spec --noconfirm --clean -y # 第 7 步: 上传 exe 文件作为构建产物 - name: Upload Windows executable