Cannot make deb due to mismatched executableName
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.
Please describe your issue:
Console output when you run electron-forge
with the environment variable DEBUG=electron-forge:*
. (Instructions on how to do so here). Please include the stack trace if one exists.
An unhandled error has occurred inside Forge:
An error occured while making for target: deb
Error creating contents of package: Error creating binary symlink: could not find the Electron app binary at "/home/george/Documents/Code/free-dice/out/Free Dice-linux-x64/free-dice". You may need to re-bundle the app using Electron Packager's "executableName" option.
Error: Error creating contents of package: Error creating binary symlink: could not find the Electron app binary at "/home/george/Documents/Code/free-dice/out/Free Dice-linux-x64/free-dice". You may need to re-bundle the app using Electron Packager's "executableName" option.
at err (/usr/lib/node_modules/electron-forge/node_modules/electron-installer-common/src/error.js:12:13)
Put the console output here
**What command line arguments are you passing?**
None
Put the arguments here
None
**What does your `config.forge` data in `package.json` look like?**
“config”: { “forge”: { “make_targets”: { “win32”: [ “squirrel” ], “darwin”: [ “zip” ], “linux”: [ “deb”, “rpm” ] }, “electronPackagerConfig”: { “packageManager”: “npm” }, “electronWinstallerConfig”: { “name”: “Free Dice” }, “electronInstallerDebian”: {}, “electronInstallerRedhat”: {}, “github_repository”: { “owner”: “GBora”, “name”: “free-dice” }, “windowsStoreConfig”: { “packageName”: “”, “name”: “Free Dice” } } },
Paste the config.forge JSON object here
Please provide either a failing minimal testcase (with a link to the code) or detailed steps to
reproduce your problem. Using electron-forge init
is a good starting point, if that is not the
source of your problem.
Issue happens every time when I try to build on ubuntu.
Issue Analytics
- State:
- Created 5 years ago
- Comments:8 (2 by maintainers)
Top GitHub Comments
I bumped into this issue too.
In fact
config.forge.packagerConfig.executableName
should be the same as the top-levelname
in thepackage.json
, or the rpm and deb builder will fail with that error.So there is really a bug either on forge or on electron-packager end.
@Stefano19-Bongiovanni put it inside
"packagerConfig': {}