diff --git a/.github/workflows/build-macos-x86.yml b/.github/workflows/build-macos-x86.yml index ea37443..496867e 100644 --- a/.github/workflows/build-macos-x86.yml +++ b/.github/workflows/build-macos-x86.yml @@ -44,7 +44,7 @@ jobs: # 步骤 7: 运行 PyInstaller 构建 x86_64 应用 - name: Build the x86_64 application with PyInstaller run: | - uv run pyinstaller lite_mac_x86_64.spec --noconfirm + uv run --no-dev pyinstaller lite_mac_x86_64.spec --noconfirm # 步骤 8: 从代码中获取应用版本号 - name: Get application version diff --git a/.github/workflows/build-macos.yml b/.github/workflows/build-macos.yml index 803e7b1..cdb54b2 100644 --- a/.github/workflows/build-macos.yml +++ b/.github/workflows/build-macos.yml @@ -43,7 +43,7 @@ jobs: # universal2 的配置已移至 lite_mac.spec 文件中,所以命令行很简洁。 - name: Build the application with PyInstaller run: | - uv run pyinstaller lite_mac.spec --noconfirm + uv run --no-dev pyinstaller lite_mac.spec --noconfirm # 步骤 8: 从代码中获取应用版本号 - name: Get application version diff --git a/.github/workflows/build-windows.yml b/.github/workflows/build-windows.yml index c013f5e..a719abd 100644 --- a/.github/workflows/build-windows.yml +++ b/.github/workflows/build-windows.yml @@ -40,7 +40,7 @@ jobs: # 第 6 步: 运行 PyInstaller - name: Build the application with PyInstaller run: | - uv run pyinstaller lite.spec --noconfirm + uv run --no-dev pyinstaller lite.spec --noconfirm # 第 7 步: 上传 exe 文件作为构建产物 - name: Upload Windows executable diff --git a/lite.spec b/lite.spec index fe8bbb0..88f58b1 100644 --- a/lite.spec +++ b/lite.spec @@ -26,7 +26,7 @@ a = Analysis( hookspath=[], hooksconfig={}, runtime_hooks=[], - excludes=["docling", "docutranslate.converter.x2md.converter_docling","torch"], + excludes=["docling", "docutranslate.converter.x2md.converter_docling"], noarchive=False, optimize=0, ) diff --git a/lite_mac_x86_64.spec b/lite_mac_x86_64.spec index 92e5199..a777d62 100644 --- a/lite_mac_x86_64.spec +++ b/lite_mac_x86_64.spec @@ -27,7 +27,7 @@ a = Analysis( hookspath=[], hooksconfig={}, runtime_hooks=[], - excludes=["docling","docutranslate.converter.x2md.converter_docling","torch"], + excludes=["docling","docutranslate.converter.x2md.converter_docling"], noarchive=False, target_arch='x86_64', optimize=0,