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.

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

github_iconTop GitHub Comments

4reactions
cronvelcommented, May 19, 2022

I bumped into this issue too.

In fact config.forge.packagerConfig.executableName should be the same as the top-level name in the package.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.

1reaction
IshanKBGcommented, May 23, 2021

in what file i have to put the string “executableName” in electron packager 15? I tried to put it in package.json but doesn’t work.

@Stefano19-Bongiovanni put it inside "packagerConfig': {}

Read more comments on GitHub >

github_iconTop Results From Across the Web

Cannot make deb due to mismatched executableName #709
Please describe your issue: Console output when you run electron-forge with the environment variable DEBUG=electron-forge:* . (Instructions on ...
Read more >
error showing while creating a debian file from electronjs project
You may need to re-bundle the app using Electron Packager's "executableName" option. My package.json file is { "name": "wallet", "version": "1.0 ...
Read more >
[Build Guide][Flo/Deb] - Pure AOSP 6.0.0_r1 | Page 84 - XDA Forums
I have opted not to post an actual AOSP ROM based on 6.0.0 due to the fact I ... same directory as make...
Read more >
Configuration Management, Developer, Linux - A Cloud Guru
deb ) first. If you really need to compile, do it with care.Note: This tutorial assumes that you have some linux command line...
Read more >
How To Build Go Executables for Multiple Platforms on ...
In this tutorial, you'll use Go's tools to obtain a package from version control and automatically install its executable. Then you'll manually ...
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