/tauriv2-vue-desktop-starter

Desktop application starter repo using Tauri v2, Vue.js, and Shadcn Vue.

Primary LanguageVueMIT LicenseMIT

tauriv2-vue-desktop-starter

A desktop application starter using the libraries and technologies:

Recommended IDE Setup

Prerequisites

Follow Tauri's prerequisites guide to setup your development environment.

Then rename all instances of tauriv2-vue-desktop-starter and tauriv2_vue_desktop_starter to your app name.

If you want to replace the package manager update:

Installation

Install dependencies with pnpm install

Development

For Desktop development, run: pnpm tauri dev

Internationalization (i18n)

Vue I18n

Adding a new language

Create a new JSON file in the locales directory with the appropriate translations and the locale as the filename.

Then update the supportedLanguages function in lib/config.ts to include the new language.

Helpful Tips

Tauri Store Plugin stores settings.json at:

macOS: ~/Library/Application Support/com.github.tauriv2-vue-desktop-starter

App Icon

Tauri CLI provides an icon command pnpm tauri icon which takes an image path and generates icon files for your application.

Deployment & Release

Tauri v1 Deployment Guide

To build a binary, run:

pnpm tauri build

This repo is currently setup to create a release on Github when you merge to the release branch. See https://github.com/tauri-apps/tauri-action/tree/dev.

Caveats

If you are using the signing identity - for macOS, when you first download and run the application, you will have to go to System Settings > Privacy & Security and allow your app to run. See tauri-apps/tauri-action/issues/824 & support.apple.com/open-a-mac-app-from-an-unidentified-developer.