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:

Preview

Light mode dashboard view

Light Mode Dashboard

Dark mode settings view

Dark Mode Settings

Language support view

Language Support

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.

Contributing

Contributions are welcome! Feel free to:

  • Open issues for bugs or feature requests
  • Submit pull requests for improvements
  • Provide feedback on existing features
  • Suggest documentation improvements
  • Help with translations

Deployment & Release

Tauri v2 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.