修改github action

This commit is contained in:
xunbu
2025-08-21 16:23:23 +08:00
parent 79273f0ed1
commit 3c472a7089
3 changed files with 57 additions and 21 deletions

View File

@@ -42,7 +42,7 @@ jobs:
run: |
uv run pyinstaller lite_mac.spec --noconfirm
# 第 7 步: 创建 macOS 应用包结构 (可选)
# 第 7 步: 创建 macOS 应用包结构
- name: Create macOS app bundle structure
run: |
mkdir -p dist/DocuTranslate.app/Contents/MacOS
@@ -80,16 +80,9 @@ jobs:
EOF
shell: bash
# 第 8 步: 打包成 zip 文件
- name: Package application into a zip file
run: |
cd dist
zip -r DocuTranslate-macOS.zip DocuTranslate.app
shell: bash
# 第 9 步: 上传构建产物
- name: Upload macOS build artifact
# 第 8 步: 直接上传 .app 文件夹作为构建产物
- name: Upload macOS application
uses: actions/upload-artifact@v4
with:
name: DocuTranslate-macOS
path: dist/DocuTranslate-macOS.zip
path: dist/DocuTranslate.app