Skip to content

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

License

Notifications You must be signed in to change notification settings

seferino-fernandez/tauriv2-vue-desktop-starter

Repository files navigation

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

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.