This setup is only needed for development. Consumers of Tauri apps will not have to do any of this.
Tauri is a polyglot system, and as such requires a good deal of tooling.
First you should download and install Visual Studio MSBuild Tools and C++ build tools.
Then run the following from an Administrative PowerShell and press Y when prompted:
# BE SURE YOU ARE IN AN ADMINISTRATIVE PowerShell! nvm install 12.16.0 nvm use 12.16.0 Set-ExecutionPolicy Bypass -Scope Process -Force; iwr -useb get.scoop.sh | iex scoop install yarn
This will install the most recent version of nodejs* with nvm, scoop, and yarn.
Optional If You Need npm
# DO NOT EXECUTE FROM ADMINISTRATIVE PowerShell! yarn global add npm
Rustc and Cargo Package Manager
Download and install the proper variant for your computer's architecture. After, run the following command in a terminal.
rustup update stable
Microsoft disables the loopback interface - you need to whitelist it if you intend to use the dev-server:
Open an administrative console and enter:
CheckNetIsolation.exe LoopbackExempt -a -n="Microsoft.Win32WebViewHost_cw5n1h2txyewy"
If you want to debug the front-end you will have to download Microsoft Edge Devtools from the Microsoft store.
This will allow you to attach to a running instance of your Tauri project! If you need help take a look at the devtools-guide.
After you have installed Rust and other required dependencies, it is wise to restart your terminal before continuing.
Install Tauri bundler through Cargo:
cargo install tauri-bundler --force
Now that you have set up the Windows-specific dependencies for Tauri, learn how to add Tauri to your project.