Repository navigation
chore(desktop): upgrade Tauri to 2.12 and build on Rust stable again - #102
Open
teo-goulois wants to merge 4 commits into
Open
teo-goulois wants to merge 4 commits into
teo-goulois wants to merge 4 commits into
Conversation
Since Rust 1.100, cargo puts unit test binaries in target/<profile>/build/<package>/<hash>/out/ instead of target/<profile>/deps/, so the remote tests that run the real localify binary looked for it two folders up and failed on every CI run. They now look in each folder above the test binary.
Rust 1.100 moved build scripts' OUT_DIR under target/<profile>/build/<pkg>/<hash>/out/. tauri-build 2.5.6 derives the target folder from OUT_DIR, lands in target/<profile>/build/, and fails removing the localify crate's build folder as if it were the copied sidecar, so desktop-shell fails on every run. Releases are built with 1.99.1 too.
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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-build2.5.6 assumed the target folder sat exactly three levels aboveOUT_DIR, so it landed intarget/debug/build/. There,copy_binariestried to removetarget/debug/build/localify(thelocalifycrate's build folder) and panicked. That broke thedesktop-shelljob.tauri-build2.7.0 fixes this: it walks up fromOUT_DIRto thebuildfolder (tauri-apps/tauri#15831, commitc0bd0d5a6). 2.7.5 and 2.7.6 add nothing on top except dependency bumps. Tauri releasestauri-build2.7.x together withtauri2.12.x, and both pintauri-utils ~2.10, sotaurimoves too.Changes
src-tauri:tauri2.10.3 → 2.12.7,tauri-build2.5.6 → 2.7.6. The lockfile pulls in the matchingtauri-runtime(-wry),tauri-macros,tauri-codegen,tauri-utils,wry0.57,tao0.37,muda0.20 andtray-icon0.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.dtolnay/rust-toolchain@stableagain, 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)
externalBin: no change on macOS. Under Rust 1.100, the sidecar now lands insrc-tauri/target/debug/localify, where it should be.tauri-plugin-updater(ADR 0034).tauri buildandtauri signer signnow record the app version in the minisign trusted comment. Localify's verifier (verify_signatureinsrc/infrastructure/updates/release.rs) checks the global signature withminisign-verifyand doesn't read the comment, so both old and new signatures verify.scripts/postprocess-macos-bundles.shcallstauri signer signwithout--app-version, so CLI 2.12 prints a warning there. The signature is still valid.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:buildnode scripts/prepare-tauri-sidecar.mjssrc-tauri:cargo fmt --check,cargo clippy --locked -- -D warnings,cargo test --locked,cargo build --lockedcargo 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 mismatchNot run locally: a signed and notarized
pnpm tauri:build. The next release does that.