ci: restore aarch64 DMG bundling with XProtect workaround - #8
Merged
Merged
Conversation
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
v0.0.17 shipped without
Knock_<ver>_aarch64.dmgbecause #7 bypassed DMG bundling (--bundles app) for the macOS aarch64 job. That left Apple Silicon users with no DMG asset, whichinstall-app.shexpects.Root cause of the original bundling failure
bundle_dmg.shfailed in ~4s on the v0.0.16 run — not an AppleScript timeout. XProtect's behavioral scan on GitHub macOS runners grabs freshly created DMGs andhdiutilfails with "Resource busy" (actions/runner-images#7522). Intermittent: the x86_64 job on the same runner image succeeded.Fix
--bundles appbypass so the default bundle set (dmg + app.tar.gz updater) builds again for aarch64.--verboseon 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 publishKnock_<ver>_aarch64.dmg. If it still flakes, verbose logs will show the underlying hdiutil/AppleScript error.