Skip to content

Commit 72dffe4

Browse files
committed
fix(bundle): use signed AXe archive on non-macOS CI
On Linux CI runners (e.g. Ubuntu), codesign is unavailable so the Homebrew unsigned AXe archive produces binaries that macOS kills on execution (SIGKILL). Use the pre-signed legacy archive on non-macOS so pkg.pr.new preview packages ship with properly signed binaries.
1 parent 940dd98 commit 72dffe4

1 file changed

Lines changed: 8 additions & 4 deletions

File tree

scripts/bundle-axe.sh

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -94,8 +94,9 @@ else
9494

9595
echo "📥 Downloading latest AXe release from GitHub..."
9696

97-
# Prefer Homebrew-specific archive (unsigned for relocation compatibility),
98-
# and fall back to legacy signed archive for older AXe releases.
97+
# On macOS, prefer the Homebrew-specific archive (unsigned for relocation
98+
# compatibility) and ad-hoc sign it later. On non-macOS (e.g. CI on Linux),
99+
# codesign is unavailable so use the legacy pre-signed archive directly.
99100
AXE_RELEASE_BASE_URL="https://github.com/cameroncooke/AXe/releases/download/v${PINNED_AXE_VERSION}"
100101
AXE_HOMEBREW_URL="${AXE_RELEASE_BASE_URL}/AXe-macOS-homebrew-v${PINNED_AXE_VERSION}.tar.gz"
101102
AXE_LEGACY_URL="${AXE_RELEASE_BASE_URL}/AXe-macOS-v${PINNED_AXE_VERSION}.tar.gz"
@@ -105,8 +106,11 @@ else
105106
cd "$AXE_TEMP_DIR"
106107

107108
# Download and extract the release
108-
echo "📥 Downloading AXe Homebrew archive ($AXE_HOMEBREW_URL)..."
109-
if curl -fL -o "axe-release.tar.gz" "$AXE_HOMEBREW_URL"; then
109+
if [ "$(uname -s)" != "Darwin" ]; then
110+
echo "📥 Non-macOS detected; downloading pre-signed legacy archive ($AXE_LEGACY_URL)..."
111+
curl -fL -o "axe-release.tar.gz" "$AXE_LEGACY_URL"
112+
AXE_ARCHIVE_FLAVOR="legacy-signed"
113+
elif curl -fL -o "axe-release.tar.gz" "$AXE_HOMEBREW_URL"; then
110114
AXE_ARCHIVE_FLAVOR="homebrew-unsigned"
111115
echo "✅ Downloaded AXe Homebrew archive"
112116
else

0 commit comments

Comments
 (0)