Bishop Smith Template
June 19, 2024 ยท View on GitHub
Prerequisites
These should be completed prior to compiling or running the code
Installing Prerequisites for Raspberry pi
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
Adjusting the Swapfile
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
Install Rustup
curl --proto '=https' --tlsv1.2 https://sh.rustup.rs -sSf | sh
Reboot the system again
sudo reboot
Running the code
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
Changing the Icon
npm install
npm run tauri icon your-icon.png
Building a release locally
npm install
npm run tauri build
Workflows
Workflows can be used to automatically compile and release your code. This is an example
Building a Snap
- 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.
Tauri + Vanilla
This template should help get you started developing with Tauri in vanilla HTML, CSS and Javascript.