尝试生成macos-x86架构包
This commit is contained in:
2
.github/workflows/build-macos-x86.yml
vendored
2
.github/workflows/build-macos-x86.yml
vendored
@@ -44,7 +44,7 @@ jobs:
|
|||||||
# 步骤 7: 运行 PyInstaller 构建 x86_64 应用
|
# 步骤 7: 运行 PyInstaller 构建 x86_64 应用
|
||||||
- name: Build the x86_64 application with PyInstaller
|
- name: Build the x86_64 application with PyInstaller
|
||||||
run: |
|
run: |
|
||||||
uv run pyinstaller lite_mac_x86_64.spec --noconfirm
|
uv run --no-dev pyinstaller lite_mac_x86_64.spec --noconfirm
|
||||||
|
|
||||||
# 步骤 8: 从代码中获取应用版本号
|
# 步骤 8: 从代码中获取应用版本号
|
||||||
- name: Get application version
|
- name: Get application version
|
||||||
|
|||||||
2
.github/workflows/build-macos.yml
vendored
2
.github/workflows/build-macos.yml
vendored
@@ -43,7 +43,7 @@ jobs:
|
|||||||
# universal2 的配置已移至 lite_mac.spec 文件中,所以命令行很简洁。
|
# universal2 的配置已移至 lite_mac.spec 文件中,所以命令行很简洁。
|
||||||
- name: Build the application with PyInstaller
|
- name: Build the application with PyInstaller
|
||||||
run: |
|
run: |
|
||||||
uv run pyinstaller lite_mac.spec --noconfirm
|
uv run --no-dev pyinstaller lite_mac.spec --noconfirm
|
||||||
|
|
||||||
# 步骤 8: 从代码中获取应用版本号
|
# 步骤 8: 从代码中获取应用版本号
|
||||||
- name: Get application version
|
- name: Get application version
|
||||||
|
|||||||
2
.github/workflows/build-windows.yml
vendored
2
.github/workflows/build-windows.yml
vendored
@@ -40,7 +40,7 @@ jobs:
|
|||||||
# 第 6 步: 运行 PyInstaller
|
# 第 6 步: 运行 PyInstaller
|
||||||
- name: Build the application with PyInstaller
|
- name: Build the application with PyInstaller
|
||||||
run: |
|
run: |
|
||||||
uv run pyinstaller lite.spec --noconfirm
|
uv run --no-dev pyinstaller lite.spec --noconfirm
|
||||||
|
|
||||||
# 第 7 步: 上传 exe 文件作为构建产物
|
# 第 7 步: 上传 exe 文件作为构建产物
|
||||||
- name: Upload Windows executable
|
- name: Upload Windows executable
|
||||||
|
|||||||
@@ -26,7 +26,7 @@ a = Analysis(
|
|||||||
hookspath=[],
|
hookspath=[],
|
||||||
hooksconfig={},
|
hooksconfig={},
|
||||||
runtime_hooks=[],
|
runtime_hooks=[],
|
||||||
excludes=["docling", "docutranslate.converter.x2md.converter_docling","torch"],
|
excludes=["docling", "docutranslate.converter.x2md.converter_docling"],
|
||||||
noarchive=False,
|
noarchive=False,
|
||||||
optimize=0,
|
optimize=0,
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -27,7 +27,7 @@ a = Analysis(
|
|||||||
hookspath=[],
|
hookspath=[],
|
||||||
hooksconfig={},
|
hooksconfig={},
|
||||||
runtime_hooks=[],
|
runtime_hooks=[],
|
||||||
excludes=["docling","docutranslate.converter.x2md.converter_docling","torch"],
|
excludes=["docling","docutranslate.converter.x2md.converter_docling"],
|
||||||
noarchive=False,
|
noarchive=False,
|
||||||
target_arch='x86_64',
|
target_arch='x86_64',
|
||||||
optimize=0,
|
optimize=0,
|
||||||
|
|||||||
Reference in New Issue
Block a user