Repository navigation
fix: Tauri の Rust と npm のバージョンを揃える - #27
Merged
Merged
Conversation
process 2.4 と updater 2.14 は Tauri 2.12(Rust 1.90)が要る。 crate の major.minor に合わせて @tauri-apps/api と CLI も 2.12 に揃える。
tauri-plugin-process を 2.4.0、tauri-plugin-updater を 2.14.1 にし、 対応する npm パッケージの major/minor と一致させる。
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.
概要
リリースの Tauri ビルドが、Rust クレートと npm パッケージの major/minor 不一致で止まっていた。古い側のクレートを npm と同じ minor に上げ、その前提になる Tauri 本体と Rust も揃えた。
不一致だった組み合わせ
CLI は Cargo.lock とインストール済み npm の major.minor を比較する。次の2組だけが不一致だった。
tauri-plugin-process/@tauri-apps/plugin-processtauri-plugin-updater/@tauri-apps/plugin-updaterprocess 2.4 と updater 2.14 は Tauri 2.12(Rust 1.90)が要る。crate を上げると
tauri2.11 と@tauri-apps/api/ CLI 2.11 がずれるため、そちらも 2.12 に上げた。確認した組み合わせ
tauri/@tauri-apps/apitauri/@tauri-apps/clitauri-plugin-clipboard-manager/@tauri-apps/plugin-clipboard-managertauri-plugin-fs/@tauri-apps/plugin-fstauri-plugin-notification/@tauri-apps/plugin-notificationtauri-plugin-opener/@tauri-apps/plugin-openertauri-plugin-process/@tauri-apps/plugin-processtauri-plugin-updater/@tauri-apps/plugin-updatertauri-plugin-global-shortcuttauri-buildtauri2.12.5 の要件)src-tauri/coreロックファイルは CI と同じ
pnpm-lock.yamlを更新した。package-lock.jsonは pnpm の運用では使っておらず、process / updater も載っていないため触っていない。mise.tomlの Rust は 1.88 から 1.90 に上げた。新しいクレートの MSRV が 1.90 のため。確認
pnpm install --frozen-lockfilepnpm test(23件成功)pnpm buildcargo check --locked(src-tauri、Rust 1.90)cargo test --manifest-path src-tauri/core/Cargo.toml(11件成功)pnpm exec tauri build --debug --no-bundleがバージョン不一致で止まらず、デバッグバイナリの生成まで完了