From 942e0728b0be39a5092436f7ebe9c775305040e7 Mon Sep 17 00:00:00 2001 From: Jonathan Turnock <16135506+JonathanTurnock@users.noreply.github.com> Date: Wed, 3 Jun 2026 08:20:31 +0100 Subject: [PATCH] chore(release): drop the x86_64-apple-darwin (Intel macOS) target The release matrix no longer builds an Intel-macOS asset. Remove the dangling references so nothing 404s on the missing `pds-x86_64-apple-darwin` download: - install.sh: Intel macOS now errors with a "build from source" hint instead of attempting a missing-asset download. - pds upgrade: drop the (macos, x86_64) mapping so self-update falls through to the same build-from-source bail. - release-assets.yml: refresh the now-stale macos-13/Intel comment. Co-Authored-By: Claude Opus 4.8 (1M context) --- .github/workflows/release-assets.yml | 7 ++----- crates/pseudoscript/src/upgrade.rs | 1 - scripts/install.sh | 7 ++++++- 3 files changed, 8 insertions(+), 7 deletions(-) diff --git a/.github/workflows/release-assets.yml b/.github/workflows/release-assets.yml index 2314ecc..1304dd2 100644 --- a/.github/workflows/release-assets.yml +++ b/.github/workflows/release-assets.yml @@ -36,8 +36,8 @@ concurrency: jobs: # Build native binaries for the released commit. Runner arch is load-bearing: - # macos-13 is the last Intel image, macos-latest is Apple Silicon. Do not - # "modernize" macos-13 to macos-latest. + # macos-latest is Apple Silicon (aarch64). Intel macOS (x86_64-apple-darwin) is + # not shipped — keep it out of the installer and `pds upgrade` too. build: name: Build ${{ matrix.target }} runs-on: ${{ matrix.runner }} @@ -48,9 +48,6 @@ jobs: - target: x86_64-unknown-linux-gnu runner: ubuntu-latest archive: tar.gz - - target: x86_64-apple-darwin - runner: macos-13 # Intel - archive: tar.gz - target: aarch64-apple-darwin runner: macos-latest # Apple Silicon archive: tar.gz diff --git a/crates/pseudoscript/src/upgrade.rs b/crates/pseudoscript/src/upgrade.rs index a13b16c..b722d5d 100644 --- a/crates/pseudoscript/src/upgrade.rs +++ b/crates/pseudoscript/src/upgrade.rs @@ -71,7 +71,6 @@ fn install(tag: &str, target: &str, tmp: &Path) -> Result<()> { fn current_target() -> Result<&'static str> { let target = match (std::env::consts::OS, std::env::consts::ARCH) { ("linux", "x86_64") => "x86_64-unknown-linux-gnu", - ("macos", "x86_64") => "x86_64-apple-darwin", ("macos", "aarch64") => "aarch64-apple-darwin", ("windows", "x86_64") => "x86_64-pc-windows-msvc", (os, arch) => bail!( diff --git a/scripts/install.sh b/scripts/install.sh index 7f5d095..ad6e21c 100755 --- a/scripts/install.sh +++ b/scripts/install.sh @@ -42,7 +42,12 @@ detect_platform() { # Only targets with a prebuilt release asset are supported. case "$target" in - x86_64-unknown-linux-gnu|x86_64-apple-darwin|aarch64-apple-darwin) ;; + x86_64-unknown-linux-gnu|aarch64-apple-darwin) ;; + x86_64-apple-darwin) + echo "error: no prebuilt binary for Intel macOS" >&2 + echo " build from source: cargo install --git https://github.com/$REPO" >&2 + exit 1 + ;; aarch64-unknown-linux-gnu) echo "error: no prebuilt binary for aarch64 Linux" >&2 echo " build from source: cargo install --git https://github.com/$REPO" >&2