npm install
Base: https://github.com/nklayman/vue-cli-plugin-electron-builder#vue-cli-plugin-electron-builder . Open a terminal in the directory of your app created with Vue-CLI 3 or 4 (4 is recommended).
Then, install and invoke the generator of vue-cli-plugin-electron-builder by running:
vue add electron-builder
That's It! You're ready to go!
If you use Yarn:
yarn electron:serve
or if you use NPM:
npm run electron:serve
With Yarn:
yarn electron:build
or with NPM:
npm run electron:build
To see more documentation.