Add flag to skip "electron-builder"
See original GitHub issueIs your feature request related to a problem? Please describe. This seems to be the most succinct repository for embedding Electronjs into a vue.js app. However, the command to embed the Electronjs framework also performs a “packaging” step (I believe the documentation calls this phase the "Electron-Builder build phase).
I would love for the ability to skip the packaging/Electron-Builder build phase and just create a bundle with the Electron boilerplate embedded.
The opposite of this has basically been handled by allowing the --skipBundle
flag.
Describe the solution you’d like
Add a flag (and the ability) that handles skipping the latter part of the electron:build
command - the part that uses electron-builder to produce an installer for the target platform.
Describe alternatives you’ve considered
I’m honestly not aware of any alternatives to using this package for just the former portions of its electron:build
functionality.
I am not an expert at vue.js or Electronjs so this feature request may be readily accessible without the need for this package already; I just don’t know how to do it and would certainly be receptive of suggestions.
It seems like I could run the vue-cli-service build
to bundle up the vue app; then copy the package.json into the bundle directory. This then leaves the background.js script; but in our case this background.js script appears to undergo a transpilation with webpack or babel or some such and I’m unsure what commands may be accessible to perform this without the electron:build
behavior.
Thanks for any support!
Issue Analytics
- State:
- Created 3 years ago
- Reactions:2
- Comments:5 (3 by maintainers)
If you use
electron:build --dir
, electron-builder will not create any installers, only a bundle indist_electron/[PLATFORM]-unpacked
, and the executable isdist_electron/[PLATFORM]-unpacked/[APP NAME]
. Is this what you want?Also a duplicate of #1033
Fixed with #1237!