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@latestsudo dphys-swapfile swapoff
sudo nano /etc/dphys-swapfileChange 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 swaponReboot the system
sudo rebootcurl --proto '=https' --tlsv1.2 https://sh.rustup.rs -sSf | shReboot the system again
sudo rebootThe 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 devnpm install
npm run tauri icon your-icon.pngnpm install
npm run tauri buildWorkflows 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
yourappto 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
releasesand 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.