From c2c8b4136c4fb72691e0fa5dbf3108426b2a421f Mon Sep 17 00:00:00 2001 From: xunbu Date: Mon, 25 Aug 2025 11:22:08 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B0=9D=E8=AF=95=E7=94=9F=E6=88=90universal2?= =?UTF-8?q?=E6=9E=B6=E6=9E=84=E5=8C=851.3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/build-macos.yml | 4 +--- lite_mac.spec | 2 +- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/.github/workflows/build-macos.yml b/.github/workflows/build-macos.yml index e677bb2..f05ff73 100644 --- a/.github/workflows/build-macos.yml +++ b/.github/workflows/build-macos.yml @@ -40,9 +40,7 @@ jobs: # 第 6 步: 运行 PyInstaller (macOS universal2 版本) - name: Build the application with PyInstaller for universal2 run: | - # 更改第 2 处:添加 --target-arch universal2 参数 - # 这个参数会告诉 PyInstaller 构建一个同时支持 Intel 和 Apple Silicon 的应用 - uv run pyinstaller lite_mac.spec --noconfirm --target-arch universal2 + uv run pyinstaller lite_mac.spec --noconfirm # 第 7 步: 获取应用版本号 - name: Get application version diff --git a/lite_mac.spec b/lite_mac.spec index 2df75a6..b2e90ea 100644 --- a/lite_mac.spec +++ b/lite_mac.spec @@ -29,6 +29,7 @@ a = Analysis( runtime_hooks=[], excludes=["docling","docutranslate.converter.x2md.converter_docling"], noarchive=False, + target_arch='universal2', optimize=0, ) @@ -49,7 +50,6 @@ exe = EXE( console=True, disable_windowed_traceback=False, argv_emulation=False, - target_arch=None, codesign_identity=None, entitlements_file=None, icon='DocuTranslate.icns',