fix
This commit is contained in:
11
.github/workflows/build-macos.yml
vendored
11
.github/workflows/build-macos.yml
vendored
@@ -80,9 +80,14 @@ jobs:
|
|||||||
EOF
|
EOF
|
||||||
shell: bash
|
shell: bash
|
||||||
|
|
||||||
# 第 8 步: 直接上传 .app 文件夹作为构建产物
|
# 第 8 步: 将 .app 打包成 .dmg 磁盘映像
|
||||||
- name: Upload macOS application
|
- name: Create DMG Disk Image
|
||||||
|
run: |
|
||||||
|
hdiutil create -volname "DocuTranslate Installer" -srcfolder dist/DocuTranslate.app -ov -format UDZO dist/DocuTranslate-macOS.dmg
|
||||||
|
|
||||||
|
# 第 9 步: 上传 .dmg 文件作为构建产物
|
||||||
|
- name: Upload macOS DMG
|
||||||
uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: DocuTranslate-macOS
|
name: DocuTranslate-macOS
|
||||||
path: dist/DocuTranslate.app
|
path: dist/DocuTranslate-macOS.dmg # <--- 修改这里,上传 .dmg 文件
|
||||||
4
.github/workflows/build-windows-full.yml
vendored
4
.github/workflows/build-windows-full.yml
vendored
@@ -40,11 +40,11 @@ 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 pyinstaller lite_full.spec --noconfirm
|
||||||
|
|
||||||
# 第 7 步: 上传 exe 文件作为构建产物
|
# 第 7 步: 上传 exe 文件作为构建产物
|
||||||
- name: Upload Windows executable
|
- name: Upload Windows executable
|
||||||
uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: DocuTranslate-Windows
|
name: DocuTranslate-full-Windows
|
||||||
path: dist/*.exe
|
path: dist/*.exe
|
||||||
Reference in New Issue
Block a user