vutron-logo

Quick Start Templates for Vite + Vue 3 + Electron

license Programming Language Usage github repo size Stars Commit Count Line Count Followers

Vutron is a preconfigured template for developing Electron cross-platform desktop apps. It uses Vue 3 and allows you to build a fast development environment with little effort.


⚠️ NOTE: Vutron now uses the Vite compiler!!!

By using the Vite compiler, we achieved our goals of reducing project and bundle size, and improving development environment and build speed.

The old Vutron using the Webpack5 compiler has been split into the repositories below and will end support soon.

https://github.com/jooy2/vutron-webpack


Advantages of use

  • ✅ You can build immediately without any presets, so you can develop quickly.
  • ✅ It is being maintained quickly to be compatible with the latest Vue and Electron, as well as many modules.
  • ✅ There is no need to worry about layout and data management by using various additional templates.

Features

  • ⚡️ Rapid development through hot-reload
  • ⚡️ Cross-platform development and build support
  • ⚡️ Multilingual support
  • ⚡️ Support for themes (dark & light)
  • ⚡️ Basic layout manager
  • ⚡️ Global state management through the Pinia store
  • ⚡️ TypeScript support

Pre-configured components

Installation

You can easily clone a repository with just the npm command. (Recommend)

$ npm init vutron

OR, Click Use this template to instantly create your own project.

OR, Clone this repo using below command.

$ git clone https://github.com/jooy2/vutron <PROJECT_NAME>

After cloning the project, run the following command in the terminal:

# via npm
$ npm i

# via yarn
$ yarn install

# via pnpm
$ pnpm i

Run in development environment

$ npm run dev

Build

Once the module installation is complete, you can simply build the platform package with the command below.

# For Windows (.exe, .appx)
$ npm run build:win

# For macOS (.dmg)
$ npm run build:mac

# For Linux (.rpm, .deb, .snap)
$ npm run build:linux

The built packages can be found in dist/release/{version} location.

What do I need to do for a multi-platform build?

macOS is recommended if you want to build multiple platforms simultaneously on one platform. Because it can be configured with just a few very simple settings.

You can perform multi-platform builds at once with the following command. Alternatively, you can just do it for the OS you want via the individual build commands above.

$ npm run build

Multipass configuration may be required for Linux builds. Learn more about Multipass through the following link: https://multipass.run

Looking for Electron templates made with React?

Also check out the Retron project, which consists of Vite + React + Material-UI + Electron.

https://github.com/jooy2/retron

Contribute

You can report issues on Github Issue. You can also request a pull to fix bugs and add frequently used features.

License

Copyright © 2022 Jooy2 Released under the MIT license.

S
Description
No description provided
Readme
3.2 MiB
0 Stars 1 Watchers 0 Forks
Languages
Vue 50.6%
TypeScript 46.6%
JavaScript 2.6%
HTML 0.2%