Skip to content

armgit / macro

Public Imported from GitHub
0

Macro is a unified workspace for teams: email, chat, docs, tasks, agents, calls, and CRM — @-linked together with shared AI memory.

fix(ci): make DMG artifacts writable for stapling (#7543)

Eric Hayes795c84c3e829
diff --git a/.github/workflows/build_desktop_on_tag.yml b/.github/workflows/build_desktop_on_tag.yml
index ec19f9c334..c5edae764f 100644
--- a/.github/workflows/build_desktop_on_tag.yml
+++ b/.github/workflows/build_desktop_on_tag.yml
@@ -293,6 +293,8 @@ jobs:
exit 1
fi
cp -v "${dmgs[@]}" artifacts/
+ # Nix outputs are read-only; stapler must write Apple's ticket into the copy.
+ chmod u+w artifacts/*.dmg
shell: bash
- name: Validate signed DMG
run: |
diff --git a/.github/workflows/build_dmg_on_tag.yml b/.github/workflows/build_dmg_on_tag.yml
index c358e70256..08e5322600 100644
--- a/.github/workflows/build_dmg_on_tag.yml
+++ b/.github/workflows/build_dmg_on_tag.yml
@@ -120,6 +120,8 @@ jobs:
exit 1
fi
cp -v "${dmgs[@]}" artifacts/
+ # Nix outputs are read-only; stapler must write Apple's ticket into the copy.
+ chmod u+w artifacts/*.dmg
shell: bash
- name: Validate signed DMG
run: |
diff --git a/tooling/xtask/crates/xtask_workflows/src/workflows/scripts/collect_dmg.sh b/tooling/xtask/crates/xtask_workflows/src/workflows/scripts/collect_dmg.sh
index 069f8826a1..85b0cc443e 100644
--- a/tooling/xtask/crates/xtask_workflows/src/workflows/scripts/collect_dmg.sh
+++ b/tooling/xtask/crates/xtask_workflows/src/workflows/scripts/collect_dmg.sh
@@ -8,3 +8,5 @@ if [ "${#dmgs[@]}" -eq 0 ]; then
exit 1
fi
cp -v "${dmgs[@]}" artifacts/
+# Nix outputs are read-only; stapler must write Apple's ticket into the copy.
+chmod u+w artifacts/*.dmg