尝试生成universal2架构包1.3

This commit is contained in:
xunbu
2025-08-25 11:22:08 +08:00
parent 493b29679b
commit c2c8b4136c
2 changed files with 2 additions and 4 deletions

View File

@@ -40,9 +40,7 @@ jobs:
# 第 6 步: 运行 PyInstaller (macOS universal2 版本) # 第 6 步: 运行 PyInstaller (macOS universal2 版本)
- name: Build the application with PyInstaller for universal2 - name: Build the application with PyInstaller for universal2
run: | run: |
# 更改第 2 处:添加 --target-arch universal2 参数 uv run pyinstaller lite_mac.spec --noconfirm
# 这个参数会告诉 PyInstaller 构建一个同时支持 Intel 和 Apple Silicon 的应用
uv run pyinstaller lite_mac.spec --noconfirm --target-arch universal2
# 第 7 步: 获取应用版本号 # 第 7 步: 获取应用版本号
- name: Get application version - name: Get application version

View File

@@ -29,6 +29,7 @@ a = Analysis(
runtime_hooks=[], runtime_hooks=[],
excludes=["docling","docutranslate.converter.x2md.converter_docling"], excludes=["docling","docutranslate.converter.x2md.converter_docling"],
noarchive=False, noarchive=False,
target_arch='universal2',
optimize=0, optimize=0,
) )
@@ -49,7 +50,6 @@ exe = EXE(
console=True, console=True,
disable_windowed_traceback=False, disable_windowed_traceback=False,
argv_emulation=False, argv_emulation=False,
target_arch=None,
codesign_identity=None, codesign_identity=None,
entitlements_file=None, entitlements_file=None,
icon='DocuTranslate.icns', icon='DocuTranslate.icns',