diff --git a/.github/workflows/build-macos.yml b/.github/workflows/build-macos.yml index f41cf9e..fc48530 100644 --- a/.github/workflows/build-macos.yml +++ b/.github/workflows/build-macos.yml @@ -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 \ No newline at end of file + path: dist/DocuTranslate-macOS.dmg # <--- 修改这里,上传 .dmg 文件 \ No newline at end of file diff --git a/.github/workflows/build-windows-full.yml b/.github/workflows/build-windows-full.yml index 61da3fe..ffc878a 100644 --- a/.github/workflows/build-windows-full.yml +++ b/.github/workflows/build-windows-full.yml @@ -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 \ No newline at end of file + name: DocuTranslate-full-Windows + path: dist/*.exe