MCPcopy Create free account
hub / github.com/YunYouJun/tauri-vite-vue

github.com/YunYouJun/tauri-vite-vue @main

Chat with this repo
repository ↗ · DeepWiki ↗ · + Follow
27 symbols 71 edges 29 files ⚖ MIT 0 documented · 0% updated 2mo ago★ 33

Browse by type

Functions 17 Types & classes 10
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

tauri-vite-vue

(🧪 WIP) Vite + Vue Starter for Tauri.

Preview: https://tauri-vite-vue.pages.dev/ Docs: <>

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:1420
pnpm dev

# run it in tauri
# RUST_BACKTRACE=1 pnpm tauri dev
pnpm tauri dev
# https://tauri.app/distribute/google-play/#changing-app-icon
pnpm tauri icon /path/to/app-icon.png

Android

# https://tauri.app/start/prerequisites/#android
export JAVA_HOME="/Applications/Android Studio.app/Contents/jbr/Contents/Home"
# custom
# export JAVA_HOME="/Users/yunyou/Applications/Android Studio.app/Contents/jbr/Contents/Home"
export ANDROID_HOME="$HOME/Library/Android/sdk"
export NDK_HOME="$ANDROID_HOME/ndk/$(ls -1 $ANDROID_HOME/ndk)"

rustup target add aarch64-linux-android armv7-linux-androideabi i686-linux-android x86_64-linux-android

# dev
pnpm tauri android init
pnpm tauri android dev

iOS

iOS | prerequisites | Tauri

rustup target add aarch64-apple-ios x86_64-apple-ios aarch64-apple-ios-sim

brew install cocoapods
# .env
APPLE_DEVELOPMENT_TEAM=YOUR_TEAM_ID
# fist
pnpm tauri ios init

# run
pnpm tauri ios 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)

Release

The release workflow in .github/workflows/release.yml builds Windows, Linux, macOS Intel, and macOS Apple Silicon bundles, then uploads them to a draft GitHub Release.

Push a version tag to trigger it:

git tag v0.1.0
git push origin v0.1.0

FAQ

Android: packageInfo is null

需为安卓 APK 签名。

keytool -genkey -v -keystore ~/upload-keystore.jks -keyalg RSA -keysize 2048 -validity 10000 -alias upload
# /src-tauri/gen/android/keystore.properties
storePassword=<password from previous step>
keyPassword=<password from previous step>
keyAlias=upload
storeFile=<密钥存储文件的位置,例如 /Users/<user name>/upload-keystore.jks 或 C:\\Users\\<user name>\\upload-keystore.jks>

为应用签名 安卓代码签名|Tauri

Thanks

Extension points exported contracts — how you extend this code

browse all types & interfaces →

Core symbols most depended-on inside this repo

browse all functions →

Shape

Function 13
Interface 6
Class 4
Method 4

Languages

TypeScript56%
Kotlin30%
Rust15%

Modules by API surface

src-tauri/gen/android/buildSrc/src/main/java/cn/yunyoujun/tauri_vite_vue/kotlin/RustPlugin.kt3 symbols
src-tauri/gen/android/buildSrc/src/main/java/cn/yunyoujun/tauri_vite_vue/kotlin/BuildTask.kt3 symbols
src/typed-router.d.ts2 symbols
src/tauri/menu.ts2 symbols
src/auto-imports.d.ts2 symbols
src-tauri/src/lib.rs2 symbols
src-tauri/gen/android/app/src/main/java/cn/yunyoujun/tauri_vite_vue/MainActivity.kt2 symbols
vite.config.ts1 symbols
src/tauri/index.ts1 symbols
src/tauri/fs/index.ts1 symbols
src/tauri/dialog.ts1 symbols
src/shims.d.ts1 symbols

For agents

$ claude mcp add tauri-vite-vue \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact

Ask about this repo answers extend the page