Skip to content

chore(desktop): upgrade Tauri to 2.12 and build on Rust stable again - #102

Merged
teo-goulois merged 2 commits into
mainfrom
chore/tauri-rust-1-100
Nov 25, 2026
Merged

teo-goulois merged 2 commits into
mainfrom
chore/tauri-rust-1-100

Conversation

@teo-goulois

Copy link
Copy Markdown
Contributor

Depends on #101. This branch starts from #101, so its two commits show here until #101 merges. This PR keeps #101's localify_binary() fix and removes #101's 1.99.1 pin.

Why

Cargo 1.100 moved build-script output to target/<profile>/build/<pkg>/<hash>/out. tauri-build 2.5.6 assumed the target folder sat exactly three levels above OUT_DIR, so it landed in target/debug/build/. There, copy_binaries tried to remove target/debug/build/localify (the localify crate's build folder) and panicked. That broke the desktop-shell job.

tauri-build 2.7.0 fixes this: it walks up from OUT_DIR to the build folder (tauri-apps/tauri#15831, commit c0bd0d5a6). 2.7.5 and 2.7.6 add nothing on top except dependency bumps. Tauri releases tauri-build 2.7.x together with tauri 2.12.x, and both pin tauri-utils ~2.10, so tauri moves too.

Changes

  • src-tauri: tauri 2.10.3 → 2.12.7, tauri-build 2.5.6 → 2.7.6. The lockfile pulls in the matching tauri-runtime(-wry), tauri-macros, tauri-codegen, tauri-utils, wry 0.57, tao 0.37, muda 0.20 and tray-icon 0.25. Each Tauri crate appears only once in the tree. The plugins stay on their current versions, which work with tauri 2.12.
  • package.json: @tauri-apps/api → 2.12.5 and @tauri-apps/cli → 2.12.6, so the crate and the npm package stay on the same minor version, which the Tauri CLI checks. Plugin JS packages are unchanged and still match their crates.
  • Both workflows use dtolnay/rust-toolchain@stable again, exactly as before ci: keep CI green under Rust 1.100 (binary lookup, pin 1.99.1) #101.

What I checked in the changelogs (tauri 2.11–2.12.7, CLI 2.10.1→2.12.6, bundler 2.8.1→2.10.6)

  • Sidecar / externalBin: no change on macOS. Under Rust 1.100, the sidecar now lands in src-tauri/target/debug/localify, where it should be.
  • Capabilities: no change to the permissions we use. 2.12.0 now scopes a capability's deny rules to local or remote correctly. The app has no deny rules and no remote capability.
  • Updater: the app doesn't use tauri-plugin-updater (ADR 0034). tauri build and tauri signer sign now record the app version in the minisign trusted comment. Localify's verifier (verify_signature in src/infrastructure/updates/release.rs) checks the global signature with minisign-verify and doesn't read the comment, so both old and new signatures verify. scripts/postprocess-macos-bundles.sh calls tauri signer sign without --app-version, so CLI 2.12 prints a warning there. The signature is still valid.
  • macOS bundle: identifier (com.localify.desktop), hardenedRuntime, the signing config and the DMG flow are untouched. The bundler has no breaking change for macOS app/DMG bundles.

No changes/ note: users won't notice a difference.

Verification (local, Rust 1.100.0 / cargo 1.100.0)

  • pnpm install --frozen-lockfile, pnpm run typecheck, pnpm desktop:test, pnpm desktop:build
  • node scripts/prepare-tauri-sidecar.mjs
  • src-tauri: cargo fmt --check, cargo clippy --locked -- -D warnings, cargo test --locked, cargo build --locked
  • root crate: cargo fmt --check, cargo clippy --locked -- -D warnings, cargo test --locked (all pass)
  • pnpm tauri info: tauri 2.12.7 / tauri-build 2.7.6 / api 2.12.5 / cli 2.12.6, no version mismatch

Not run locally: a signed and notarized pnpm tauri:build. The next release does that.

@teo-goulois teo-goulois mentioned this pull request Nov 25, 2026
tauri-build 2.5 took the target folder to be three levels above OUT_DIR.
Cargo 1.100 adds a level (build/<pkg>/<hash>/out), so the sidecar copy
landed in target/debug/build and removed the localify crate's build
folder. tauri-build 2.7.0 walks up to the build folder instead
(tauri-apps/tauri#15831); it ships with tauri 2.12.

@tauri-apps/api and @tauri-apps/cli move to 2.12 to keep the crate and
npm package versions on the same minor, as the Tauri CLI checks.
tauri-build 2.7 handles cargo 1.100's build-dir layout, so the 1.99.1 pin
is no longer needed.
@teo-goulois
teo-goulois force-pushed the chore/tauri-rust-1-100 branch from e50e494 to 9f0f122 Compare November 25, 2026 11:06
@teo-goulois
teo-goulois merged commit 805d5c9 into main Nov 25, 2026
5 checks passed
@teo-goulois
teo-goulois deleted the chore/tauri-rust-1-100 branch November 25, 2026 11:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant