YunYouJun / tauri-vite-vue

🌰 Vite + Vue Starter for Tauri.

Home Page:https://tauri-vite-vue.pages.dev

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

tauri-vite-vue

(🧪 WIP) Vite + Vue Starter for Tauri.

Preview: https://tauri-vite-vue.pages.dev/

Prerequisites

Windows/macOS/Linux require different environments, but Rust and Node.JS are needed.

More info see Prerequisites | Tauri.

Try

GitHub Template

Create a repo from this template on GitHub

Clone to local

If you prefer to do it manually with the cleaner git history

npx degit YunYouJun/tauri-vite-vue my-tauri-app
cd my-tauri-app
pnpm i # If you don't have pnpm installed, run: npm install -g pnpm

Checklist

When you use this template, try follow the checklist to update your info properly

  • Change tauri.bundle.identifier value in src-tauri/tauri.conf.json
  • Change the author name in LICENSE
  • Change the title in App.vue
  • Change the icons in src-tauri
  • Remove the .github folder which contains the funding info
  • Clean up the READMEs and remove routes

And, enjoy :)

Usage

Development

# run it and visit http://localhost:5173
pnpm dev

# run it in tauri
pnpm tauri dev

Build

# Build Tauri App, find it below
pnpm tauri build

# You can use `pnpm build` to build website.
  • Windows .msi: src-tauri/target/release (only be created on Windows)
  • macOS .dmg: src-tauri/target/release/bundle/dmg (only be created on macOS)
  • Linux(Debian) .deb: src-tauri/target/release (only be created on Linux)

What to build Cross-Platform installer?

Try GitHub Actions! (Todo)

Todo

Thanks

About

🌰 Vite + Vue Starter for Tauri.

https://tauri-vite-vue.pages.dev

License:MIT License


Languages

Language:TypeScript 50.4%Language:Vue 22.7%Language:Rust 15.0%Language:CSS 5.5%Language:SCSS 3.5%Language:HTML 2.2%Language:JavaScript 0.7%