Skip to content
This repository has been archived by the owner on Nov 19, 2023. It is now read-only.

How to pass additional arguments to electron-builder? #29

Open
Patrick-Remy opened this issue Nov 17, 2021 · 1 comment
Open

How to pass additional arguments to electron-builder? #29

Patrick-Remy opened this issue Nov 17, 2021 · 1 comment

Comments

@Patrick-Remy
Copy link

This package does have a fixed list of properties that can be passed on nuxtron build (config file, platforms, archs). But first there are much more arguments electron-builder supports, and second I want to override single electron-builder configuration options for different scripts, without creating a full new electron-builder config.

Would it be possible to support something like -- -arg1 that will be passed to electron-builder?

@Patrick-Remy
Copy link
Author

As a workaround, you can replace nuxtron build with a custom npm script

"scripts": {
    "build": "npm run build:clean && npm run build:renderer && npm run build:background",
    "build:clean": "rm -rf app dist renderer/.nuxt",
    "build:renderer": "nuxt build renderer && nuxt generate renderer && mv renderer/dist app",
    "build:background": "node node_modules/nuxtron/bin/webpack/build.production.js",
    "pack":" electron-builder  --your-custom-electron-args"
}

Note that the paths are the default values, you probably need to replace them with those you configured in nuxtron config file.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant