Ubuntu
In this article we’ll take a look at the sort of setting up you need to do for basic desktop targeted development with Tauri.
Tauri relies a lot on system dependencies, it’s largely why the bundle size can be kept so small in comparison to some other frameworks cough cough Electron cough.
Your end users will require some of these to use your app but don’t worry, the installers Tauri creates take care of ensuring your user has them installed.
Simply run this command and it will install rustup
. Follow the prompts and remember to restart your terminal once it’s done.
I tend to set up a simple cronjob to keep Rust up to date. While a project might have a minimum supported version for whatever reason there’s not really any good reason for you to not be using the very latest version available.
Use crontab.guru to figure out cronjob scheduling.
To verify that your system is set up correctly you should run a basic bootstrapped project.
This by the way is the way I tend to help people with their issues, running these commands to set up a fresh new project, try compiling it to verify Tauri isn’t fundamentally broken, then add whatever code is needed to test your code. So if you ever have to make a reproduction of a problem this is the basic setup you should do as well.
I’ll be using pnpm
here but you can adapt this to whatever method you want (that Tauri supports).