Skip to content

Commit 48d0332

Browse files
committed
ci: 解决ci打包失败问题
1 parent e83b800 commit 48d0332

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

.github/workflows/macos-build.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,13 @@ jobs:
3838
- name: Prepare bundle
3939
run: |
4040
mkdir -p package
41-
mv dist/FreePDF.app package/
41+
APP_PATH=$(find dist -maxdepth 2 -name "*.app" | head -n 1)
42+
if [ -z "$APP_PATH" ]; then
43+
echo "❌ .app bundle not found under dist/"
44+
exit 1
45+
fi
46+
echo "Found app $APP_PATH"
47+
cp -R "$APP_PATH" package/
4248
cp -R fonts ui pdfjs models pdf2zh_config.json package/
4349
4450
- name: Create DMG

0 commit comments

Comments
 (0)