尝试生成universal2架构包1.3
This commit is contained in:
4
.github/workflows/build-macos.yml
vendored
4
.github/workflows/build-macos.yml
vendored
@@ -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
|
||||
|
||||
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user