Updating

Current Latest Versions

ComponentDescriptionVersion
tauri.jsCLI and imports
tauri corerust API and tooling
tauri bundlerbinary bundler

Update NPM Packages

If you are using the tauri package:

$ yarn upgrade tauri --latest
$ npm install tauri@latest

You can also detect what the latest version of tauri is on the command line, using:

  • npm outdated tauri
  • yarn outdated tauri

Alternatively, if you are using the vue-cli-plugin-tauri approach:

$ yarn upgrade vue-cli-plugin-tauri --latest
$ npm install vue-cli-plugin-tauri@latest

Update Cargo Packages

Go to src-tauri/Cargo.toml and change tauri to tauri = { version = "%version%" } where %version% is the version number shown above. (You can just use the MAJOR.MINOR) version, like 0.9.

Then do the following:

$ cd src-tauri
$ cargo update -p tauri

You can also run cargo outdated -r tauri to get direct information about the core library's latest version.

Update Tauri Bundler

Use this command to get and build the latest version of the tauri-bundler and install it in place.

$ cargo install tauri-bundler

Automatic updates

We are currently working on a method for keeping all required dependencies up to date. When it is available, it will be opt in. Keep track of progress at this issue link: #57