From 38e6e5f513c04d131f7707f1f0c392138aef0dab Mon Sep 17 00:00:00 2001 From: Soeren Magnus Olesen <101652697+df49b9cd@users.noreply.github.com> Date: Wed, 4 Nov 2026 12:44:26 +0100 Subject: [PATCH] CI: answer the dmg license prompt when mounting it in bundle-macos bundle.licenseFile makes tauri-bundler embed the GPL as the dmg's license agreement; with no TTY, hdiutil attach cancels at that prompt, so "Verify the bundle" has failed on every run and the release job never ran. --- .github/workflows/ci.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 4979152..60d8299 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -275,7 +275,10 @@ jobs: dmg=$(ls src-tauri/target/release/bundle/dmg/*.dmg) hdiutil verify "$dmg" mnt=$(mktemp -d) - hdiutil attach -readonly -nobrowse -mountpoint "$mnt" "$dmg" >/dev/null + # bundle.licenseFile makes the bundler embed the GPL as the dmg's + # license agreement; without a TTY hdiutil cancels the attach unless + # the agreement prompt is answered on stdin + yes | PAGER=cat hdiutil attach -readonly -nobrowse -mountpoint "$mnt" "$dmg" >/dev/null trap 'hdiutil detach "$mnt" -force >/dev/null 2>&1' EXIT app="$mnt/testpattern.app" bin="$app/Contents/MacOS/testpattern"