Skip to content

ci: restore aarch64 DMG bundling with XProtect workaround - #8

Merged
jairoFernandez merged 1 commit into
mainfrom
ci/fix-aarch64-dmg
Aug 6, 2026
Merged

jairoFernandez merged 1 commit into
mainfrom
ci/fix-aarch64-dmg

Conversation

@jairoFernandez

Copy link
Copy Markdown
Owner

Problem

v0.0.17 shipped without Knock_<ver>_aarch64.dmg because #7 bypassed DMG bundling (--bundles app) for the macOS aarch64 job. That left Apple Silicon users with no DMG asset, which install-app.sh expects.

Root cause of the original bundling failure

bundle_dmg.sh failed in ~4s on the v0.0.16 run — not an AppleScript timeout. XProtect's behavioral scan on GitHub macOS runners grabs freshly created DMGs and hdiutil fails with "Resource busy" (actions/runner-images#7522). Intermittent: the x86_64 job on the same runner image succeeded.

Fix

  • Kill XProtect (and wait until gone) before the Tauri build on macOS jobs.
  • Drop the --bundles app bypass so the default bundle set (dmg + app.tar.gz updater) builds again for aarch64.
  • --verbose on macOS builds so future bundling failures show the script's real stderr instead of Tauri's opaque wrapper error.

Verification

Next tagged release (or workflow_dispatch) should publish Knock_<ver>_aarch64.dmg. If it still flakes, verbose logs will show the underlying hdiutil/AppleScript error.

The macOS aarch64 Tauri job was bypassing DMG bundling (--bundles app)
because bundle_dmg.sh failed intermittently on GitHub runners. Root
cause: XProtect's behavioral scan holds freshly created DMGs, making
hdiutil fail with "Resource busy" (actions/runner-images#7522).

Kill XProtect before the Tauri build on macOS and restore the default
bundle set so Knock_<ver>_aarch64.dmg ships again. Add --verbose on
macOS builds so future bundling failures surface the underlying error
instead of Tauri's opaque wrapper message.
@jairoFernandez
jairoFernandez merged commit eb19145 into main Aug 6, 2026
3 checks passed
@jairoFernandez
jairoFernandez deleted the ci/fix-aarch64-dmg branch August 6, 2026 15:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant