This commit is contained in:
xunbu
2025-08-21 16:40:06 +08:00
parent 3c472a7089
commit 6ed4d38258
2 changed files with 11 additions and 6 deletions

View File

@@ -80,9 +80,14 @@ jobs:
EOF
shell: bash
# 第 8 步: 直接上传 .app 文件夹作为构建产物
- name: Upload macOS application
# 第 8 步: .app 打包成 .dmg 磁盘映像
- 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
with:
name: DocuTranslate-macOS
path: dist/DocuTranslate.app
path: dist/DocuTranslate-macOS.dmg # <--- 修改这里,上传 .dmg 文件

View File

@@ -40,11 +40,11 @@ jobs:
# 第 6 步: 运行 PyInstaller
- name: Build the application with PyInstaller
run: |
uv run pyinstaller lite.spec --noconfirm
uv run pyinstaller lite_full.spec --noconfirm
# 第 7 步: 上传 exe 文件作为构建产物
- name: Upload Windows executable
uses: actions/upload-artifact@v4
with:
name: DocuTranslate-Windows
path: dist/*.exe
name: DocuTranslate-full-Windows
path: dist/*.exe