Skip to content

Commit c4ea4c2

Browse files
committed
Enhance GitHub Actions workflow for Tauri app build process
- Updated the build step to handle potential DMG build failures by checking for the successful creation of the app bundle. - Added logging to provide feedback on the build status, improving visibility into the build process and error handling.
1 parent f787ad7 commit c4ea4c2

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

.github/workflows/release.yml

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,19 @@ jobs:
240240

241241
- name: Build Tauri app
242242
working-directory: frontend
243-
run: bunx tauri build
243+
run: |
244+
# Build the app - DMG may fail due to AppleScript permissions in CI, but app bundle should succeed
245+
bunx tauri build || {
246+
echo "Build completed with warnings/errors. Checking for app bundle..."
247+
# Check if app bundle was created despite DMG failure
248+
if [ -d "src-tauri/target/release/bundle/macos/Budget Planer.app" ]; then
249+
echo "✓ App bundle created successfully (DMG may have failed)"
250+
exit 0
251+
else
252+
echo "✗ App bundle not found - build failed"
253+
exit 1
254+
fi
255+
}
244256
# Optional: Set these secrets in GitHub Settings → Secrets for code signing
245257
# If not set, Tauri will build without signing (linter warnings are expected)
246258
env:

0 commit comments

Comments
 (0)