Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to deploy/distribute vue project as desktop app

I have a project made in VueJS. I've started from vue cli and almost finished the code. By npm run build I've created /dist folder with static folder and index.html. Now what I want is to convert web app into desktop app. It seems electron is what I need. However, after searching for instructions here and there, I'm not able to figure out where to start.

like image 842
ogostos Avatar asked Nov 28 '25 21:11

ogostos


1 Answers

some of the things I've used in the past...

  • nw.js https://nwjs.io/
  • electron https://electron.atom.io/
  • zeit-pkg https://github.com/zeit/pkg
  • nexe https://github.com/nexe/nexe

there are others out there, but I'd say that pkg was the easiest to use for creating a single executable, but it creates the largest files. Nexe is a bit more work to setup depending on your dependencies. nwjs and electron have a slightly more complex setup as-well, compared to a single compile command, but they do give you more options.

like image 80
Daniel Avatar answered Dec 01 '25 12:12

Daniel