question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Add flag to skip "electron-builder"

See original GitHub issue

Is 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:closed
  • Created 3 years ago
  • Reactions:2
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
nklaymancommented, Dec 13, 2020

If you use electron:build --dir, electron-builder will not create any installers, only a bundle in dist_electron/[PLATFORM]-unpacked, and the executable is dist_electron/[PLATFORM]-unpacked/[APP NAME]. Is this what you want?

Also a duplicate of #1033

0reactions
nklaymancommented, Feb 11, 2021

Fixed with #1237!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Common Configuration - electron-builder
Maps to the --iteration flag for builds using FPM on Linux. If not defined, then it will ... Resolving to false will skip...
Read more >
Ability to have a build.options for skipping-signing #792 - GitHub
Seems like a build.option would be called for, rather than a command line flag. I will try to put together a pull request....
Read more >
How to ignore src folder from package - Stack Overflow
By default, electron-packager is expecting a regular expression for the --ignore flag, so you may want to try --ignore=^/src to restrict the ...
Read more >
Packaging and distributing Electron applications using ...
npm install --save-dev electron-builder ... but we can override this path by specifying --project <path> flag with the $ electron-builder ...
Read more >
Supported Command Line Switches - Electron
Ignore the connections limit for domains list separated by , . --js-flags= flags ​. Specifies the flags passed to the Node.js engine. It...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found