修改github action
This commit is contained in:
15
.github/workflows/build-macos.yml
vendored
15
.github/workflows/build-macos.yml
vendored
@@ -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
|
||||
Reference in New Issue
Block a user