Can arguments be passed via `electron-forge make`?
See original GitHub issue- I have read the contribution documentation for this project.
- I agree to follow the code of conduct that this project follows, as appropriate.
- I have searched the issue tracker for an issue that matches the one I want to file, without success.
I see here that arguments can be passed through to electron-forge start
(eg. via electron-forge start -- role=production
) but can’t seem to find out how to do so through the electron-forge make
command.
Would appreciate being pointed in the right direction.
Issue Analytics
- State:
- Created 6 years ago
- Comments:22 (9 by maintainers)
Top Results From Across the Web
Can arguments be passed via electron-forge make ? #442
I see here that arguments can be passed through to electron-forge start (eg. via electron-forge start -- role=production ) but can't seem to ......
Read more >Configuration - Electron Forge
Arguments : (packageJson: Record<string, unknown>) This hook is called every time forge attempts to read your package.json file, you will be passed in...
Read more >How to pass command line argument in electron
In package.json its written npm start will perform electron main.js . So you will have to execute this command explicitly and pass arguments...
Read more >A Comprehensive Guide to Building and Packaging an ...
Building and Packaging an Electron App wasn't as straight forward as I had hoped. This guide aims to help you navigate the complexities...
Read more >electron-forge - npm
Any arguments after "start" will be passed through to your application when it's launched. Packaging your Project. electron-forge package. Yes, ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I did that and see the limited number of options. How can I go about having arguments passed through to the package Electron app while going through the make/forge process?
@onassar That’s not possible, arguments are provided at runtime and can’t be “preconfigured”. If you want to set variables like that you should do something like so.
MY_APP_ROLE
) and set it to the value you wantgenerateAssets
hook to create a file containing that informationThis would look like so