SimulatedGREG / electron-vue

An Electron & Vue.js quick start boilerplate with vue-cli scaffolding, common Vue plugins, electron-packager/electron-builder, unit/e2e testing, vue-devtools, and webpack.
https://simulatedgreg.gitbooks.io/electron-vue/content/
MIT License
15.46k stars 1.54k forks source link

How to get the original ".exe" path after build? #1038

Open long0621 opened 4 years ago

long0621 commented 4 years ago
Describe the issue / bug.

In electron vue, after i execute "npm run build " will get a build file, and have the .exe file inside it. My problem is how to get this .exe or build file's path?

the question same with this stackoverflow's problem: https://stackoverflow.com/questions/46307797/how-to-get-the-original-path-of-a-portable-electron-app

but the answer "process.env.PORTABLE_EXECUTABLE_DIR" in my file is "undefined", if anyone know how to solve it , please share with me, thanks a lot!