These should be completed prior to compiling or running the code
sudo apt update
sudo apt install libwebkit2gtk-4.1-dev \
build-essential \
curl \
wget \
file \
libxdo-dev \
libssl-dev \
libayatana-appindicator3-dev \
librsvg2-dev
sudo npm install --force -g npm@latest
sudo npm install --force -g nodejs@latest
sudo dphys-swapfile swapoff
sudo nano /etc/dphys-swapfile
Change the variable CONF_SWAPSIZE=
to your desired value in megabytes, normally around 6144
Uncomment the bottom variable and change it to the same value
Type in CTRL + X
followed by Y
and then ENTER
sudo dphys-swapfile setup
sudo dphys-swapfile swapon
Reboot the system
sudo reboot
curl --proto '=https' --tlsv1.2 https://sh.rustup.rs -sSf | sh
Reboot the system again
sudo reboot
The html and css is located in the src folder, if you want to, you can use javascript as well. Note: Iframes may have issues with some sites.
npm install
npm run tauri dev
npm install
npm run tauri icon your-icon.png
npm install
npm run tauri build
Workflows can be used to automatically compile and release your code. This is an example
- Go to snapcraft.io and create an account
- Reserve an app name
- Change all instances of
yourapp
to the name of your app - Add a summary and description to your app
- Once your app name has been approved on snapcraft.io you can click on your app and then click on the builds tab.
- When in the build tabs you can link your git repository to it and trigger a build.
- When the build is successful you can go into
releases
and drag your release from latest/edge to latest/stable.
This template should help get you started developing with Tauri in vanilla HTML, CSS and Javascript.