diff --git a/Dockerfile.release b/Dockerfile.release index 5f0dd0daf..133f77223 100644 --- a/Dockerfile.release +++ b/Dockerfile.release @@ -65,8 +65,24 @@ RUN apt-get update && apt-get install -y --no-install-recommends \ # Rust: native ARM64 toolchain so the Tauri CLI runs without emulation, # plus the x86_64 target for the actual compiled output. -ARG RUST_VERSION=1.90 -RUN rustup default "${RUST_VERSION}" \ +# +# The channel is read from rust-toolchain.toml rather than pinned here. rustup +# honours that file inside the mounted workspace, so a hardcoded version is +# silently overridden: rustup auto-installs the workspace toolchain with only +# the host target, and the build fails with "Target x86_64-unknown-linux-gnu is +# not installed". Copying the file also makes the layer cache invalidate on a +# toolchain bump. +# +# `rustup default` must be the command that installs the toolchain: the distro +# rustup only creates its CARGO_HOME proxies along that path, and `rustup target +# add` fails with "rustup is not installed at '/root/.cargo'" without them. +# Installing the toolchain separately first makes `rustup default` a no-op and +# breaks the target add. +COPY rust-toolchain.toml /tmp/rust-toolchain.toml +RUN RUST_VERSION="$(sed -n 's/^channel *= *"\(.*\)"/\1/p' /tmp/rust-toolchain.toml)" \ + && test -n "$RUST_VERSION" \ + && rm -f /tmp/rust-toolchain.toml \ + && rustup default "$RUST_VERSION" \ && rustup target add x86_64-unknown-linux-gnu # Node.js 24 (ARM64, runs natively); matches the engines requirement in package.json diff --git a/scripts/release b/scripts/release index 70d280436..18ae0bf93 100755 --- a/scripts/release +++ b/scripts/release @@ -375,8 +375,7 @@ phase_tag() { echo bold " Copy the message below into the announcements channel:" echo " --------------------------------------------------------------------" - echo - echo "@**all** A new Radicle Desktop release is out :point_right: [give it a try](https://radicle.dev/desktop)!" + echo "@**all** A new Radicle Desktop release is out :point_right: [give it a try](https://radicle.network/desktop)!" echo echo "$entry" echo " --------------------------------------------------------------------"