From cbcc74e2618675171cd3ab630ffff9e22e365bd2 Mon Sep 17 00:00:00 2001 From: XyleMora Date: Sun, 22 Nov 2026 20:45:50 +0200 Subject: [PATCH] ci: pin tauri-cli to 2.12.3 `cargo install --version "^2"` is satisfied by any 2.x already in the cached ~/.cargo/bin, so a release could be built and signed with an older CLI. The in-app update signatures need one that writes the version into the signature (`--app-version`); 2.12.3 is the version the update flow was tested with. Co-Authored-By: Claude Opus 5.5 --- .github/workflows/ci.yml | 13 ++++++++++--- README.md | 2 +- 2 files changed, 11 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index b00f593..48717bd 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -33,6 +33,13 @@ concurrency: group: ${{ github.workflow }}-${{ github.ref }} cancel-in-progress: ${{ github.event_name == 'pull_request' }} +env: + # One exact version for every job. With a range ("^2"), `cargo install` keeps + # whatever older 2.x rust-cache restored into ~/.cargo/bin, and the update + # signing needs a CLI that puts the version into the signature (--app-version, + # 2.12.3 is the one tested). Raise it here, and in README.md, on purpose. + TAURI_CLI_VERSION: "2.12.3" + jobs: test: name: Tests @@ -130,7 +137,7 @@ jobs: workspaces: src-tauri - name: Install Tauri CLI - run: cargo install tauri-cli --version "^2" --locked + run: cargo install tauri-cli --version "${{ env.TAURI_CLI_VERSION }}" --locked # A release's version is its tag's (v0.2.0 → 0.2.0), written into # tauri.conf.json, Cargo.toml and Cargo.lock before building: nothing to @@ -195,7 +202,7 @@ jobs: workspaces: src-tauri - name: Install Tauri CLI - run: cargo install tauri-cli --version "^2" --locked + run: cargo install tauri-cli --version "${{ env.TAURI_CLI_VERSION }}" --locked - name: Set the version from the tag if: startsWith(github.ref, 'refs/tags/v') @@ -270,7 +277,7 @@ jobs: workspaces: src-tauri - name: Install Tauri CLI - run: cargo install tauri-cli --version "^2" --locked + run: cargo install tauri-cli --version "${{ env.TAURI_CLI_VERSION }}" --locked - name: Set the version from the tag if: startsWith(github.ref, 'refs/tags/v') diff --git a/README.md b/README.md index 23caa91..b88eb06 100644 --- a/README.md +++ b/README.md @@ -251,7 +251,7 @@ The [user guide](docs/README.md) covers every feature in detail: # once: system libraries and Rust (Linux) sudo apt install libwebkit2gtk-4.1-dev libxdo-dev libayatana-appindicator3-dev librsvg2-dev build-essential curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -cargo install tauri-cli --version "^2" --locked +cargo install tauri-cli --version 2.12.3 --locked # the version CI uses cargo tauri dev # run from source cargo tauri build # release binary + AppImage in src-tauri/target/release/bundle/appimage/