Features
- Vite + React
- Tailwind Css
- pnpm
- Prettier
- Eslint
- Rspc with Tauri + React Integration
- GoLang CLI for scripting
- Husky for pre commit
- GitHub Workflow
- Tauri vscode debug
- Shadcn UI
Replace the {username}
and {repo}
in the ./src-tauri/tauri.conf.json
's updater endpoint with you username and repo name to get latest version info rom the github releases.
"endpoints": [
"https://github.com/{username}/{repo}/releases/latest/download/latest.json"
],
In this template Auto Updater Is enabled by default. So you need to setup keys
for auto-updater from the Tauri Docs.
And Update the public key in ./src-tauri/tauri.conf.json
and put TAURI_PRIVATE_KEY
and TAURI_KEY_PASSWORD
in GitHub Secrets.
These will be used in build process, like this.
- uses: tauri-apps/tauri-action@v0
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
TAURI_PRIVATE_KEY: ${{ secrets.TAURI_PRIVATE_KEY }}
TAURI_KEY_PASSWORD: ${{ secrets.TAURI_KEY_PASSWORD }}
Warning
You have to manually trigger publish
workflow for publishing builds, as the workflow has workflow_dispatch
trigger.
Clone the repository
git clone https://github.com/KunalSin9h/tauri-app-template
Download Dependencies
pnpm install # for frontend
cd src-tauri
cargo fetch # for backend
cd ../ # come back to home repo
Run the development app
pnpm tauri dev
Application will be build by GitHub Action
Tauri Docs
To Skip pre-commit use --no-verify
flag when doing git commit
git commit -m "message" --no-verify
# check version of app
go run scripts/app.go version
# update app version (it changes 3 files)
go run scripts/app.go version update 1.2.0