π Template to develop with Tauri in vanilla HTML, CSS and TypeScript.
Install Rust:
brew install rustInstall Node.js:
brew install nodeClone the repository:
git clone https://github.com/remarkablemark/tauri-template.git
cd tauri-templateInstall the dependencies:
npm installRename the project:
git grep -l tauri-template | xargs sed -i '' -e 's/tauri-template/my-app/g'git grep -l 'tauri_template' | xargs sed -i '' -e 's/tauri_template/my_app/g'git grep -l 'Tauri Template' | xargs sed -i '' -e 's/Tauri Template/My App/g'Set the version:
git grep -l '"1.0.0"' | xargs sed -i '' -e 's/"1.0.0"/"1.2.3"/g'Add app-icon.png and generate icons:
npx tauri iconUpdate the files:
-
src-tauri/Cargo.toml -
src-tauri/icons/ -
src-tauri/tauri.conf.json
In the project directory, you can run:
Runs the app for development.
Builds the app for production.
Recommended IDE setup: