diff --git a/CHANGELOG.md b/CHANGELOG.md index 828f090..a1a10a9 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,12 @@ All notable changes to CodeCraft. Versions follow [Semantic Versioning](https://semver.org/); until 1.0, minor versions may contain breaking changes. +## [Unreleased] + +### Added + +- **Terminal client for Linux riscv64** – built with every release alongside x86_64 and aarch64; `install.sh` and `codecraft update` pick it up (`/cli/download/linux-riscv64`). + ## [v202611-00064] – 2026-11-19 ### Added diff --git a/Dockerfile b/Dockerfile index 74ef5d9..d22bc40 100644 --- a/Dockerfile +++ b/Dockerfile @@ -52,7 +52,7 @@ RUN touch core/src/lib.rs server/src/main.rs \ && cargo zigbuild --release -p codecraft --target "$(cat /target).2.36" \ && cp "target/$(cat /target)/release/codecraft" /codecraft -# --- terminal client (static Linux binaries for x86_64 and aarch64) ----------- +# --- terminal client (static Linux binaries for x86_64, aarch64 and riscv64) ----------- # Served by the server for download (/cli/install.sh, codecraft update). FROM toolchain AS cli COPY Cargo.toml Cargo.lock ./ @@ -62,10 +62,12 @@ COPY server/resources ./server/resources COPY cli ./cli ARG CODECRAFT_VERSION="" ENV CODECRAFT_VERSION=${CODECRAFT_VERSION} +RUN rustup target add riscv64gc-unknown-linux-musl RUN mkdir -p server/src && echo 'fn main(){}' > server/src/main.rs \ - && cargo zigbuild --release -p codecraft-cli --target x86_64-unknown-linux-musl --target aarch64-unknown-linux-musl \ + && cargo zigbuild --release -p codecraft-cli --target x86_64-unknown-linux-musl --target aarch64-unknown-linux-musl --target riscv64gc-unknown-linux-musl \ && mkdir -p /out && cp target/x86_64-unknown-linux-musl/release/codecraft /out/codecraft-linux-x86_64 \ - && cp target/aarch64-unknown-linux-musl/release/codecraft /out/codecraft-linux-aarch64 + && cp target/aarch64-unknown-linux-musl/release/codecraft /out/codecraft-linux-aarch64 \ + && cp target/riscv64gc-unknown-linux-musl/release/codecraft /out/codecraft-linux-riscv64 # --- Docker CLI (static client; the daemon is the host's via the mounted socket) -- FROM toolchain AS dockercli diff --git a/README.md b/README.md index fcc3c23..4e1e342 100644 --- a/README.md +++ b/README.md @@ -205,12 +205,12 @@ Anthropic, OpenAI, Gemini, OpenRouter, opencode or a local model server (Ollama, llama.cpp, vLLM – detected automatically); both can be mixed. ```sh -curl -fsSL https:///cli/install.sh | sh # Linux x86_64 / aarch64 +curl -fsSL https:///cli/install.sh | sh # Linux x86_64 / aarch64 / riscv64 codecraft login # server URL, user name, password → creates an API token codecraft # start in the current folder; /help lists the commands ``` -The Docker image ships static binaries for Linux x86_64 and aarch64; the server offers them +The Docker image ships static binaries for Linux x86_64, aarch64 and riscv64; the server offers them for download (*Settings → Account*) and `codecraft update` fetches new versions from it. Other platforms: `cargo install --locked --git https://git.familie-zink.org/zink/codecraft codecraft-cli`. diff --git a/server/resources-cli/install.sh b/server/resources-cli/install.sh index 61c9047..573e9d1 100644 --- a/server/resources-cli/install.sh +++ b/server/resources-cli/install.sh @@ -12,6 +12,7 @@ arch=$(uname -m) case "$arch" in x86_64|amd64) arch=x86_64 ;; aarch64|arm64) arch=aarch64 ;; + riscv64) arch=riscv64 ;; *) echo "codecraft: unsupported architecture $arch" >&2; exit 1 ;; esac case "$os" in diff --git a/web/src/components/settings/CliInstall.tsx b/web/src/components/settings/CliInstall.tsx index 5d0c83d..ec20813 100644 --- a/web/src/components/settings/CliInstall.tsx +++ b/web/src/components/settings/CliInstall.tsx @@ -43,7 +43,7 @@ export function CliInstall() { {prebuilt && (
- {t("cli.downloads")} Linux x86_64 · Linux arm64 + {t("cli.downloads")} Linux x86_64 · Linux arm64 · Linux riscv64
)} diff --git a/web/src/whatsnew.ts b/web/src/whatsnew.ts index 37e1a16..898708e 100644 --- a/web/src/whatsnew.ts +++ b/web/src/whatsnew.ts @@ -3,6 +3,10 @@ * under "unreleased"; scripts/release.sh renames the key to the release version. */ export const WHATS_NEW: Record = { + unreleased: { + en: ["Terminal client now also for Linux riscv64"], + de: ["Terminal-Client jetzt auch für Linux riscv64"], + }, "202611-00064": { en: ["Factory: Telegram message when an issue gets a question or fails (can be switched off)", "Telegram: night mode (22:00–06:00, adjustable) without unsolicited messages"], de: ["Factory: Telegram-Nachricht, wenn ein Issue eine Frage hat oder fehlschlägt (abschaltbar)", "Telegram: Nachtmodus (22:00–06:00, einstellbar) ohne ungefragte Nachrichten"],