-
Notifications
You must be signed in to change notification settings - Fork 70
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error generating DEB with version 1.1.0 #175
Comments
In order to debug your problem further, we need a minimal testcase to reproduce your problem. Using the |
@jeanlucburot what command did you use to run |
@malept I will create a minimal test case and come back here. @fcastilloec I launched it using My
|
@malept So, I cloned
I then ran
So what exactly is the Electron Packager's |
Yes, I see why:
You're specifying the Electron application name in the command line parameters (
See the Electron Packager API docs. (A brief description is also available if you run |
I'm commenting here rather than opening a new issue, though I'm pretty sure that this is an issue that is yet to be solved. so my error is and my {
"name": "foo-bar",
"productName: "Foo Bar",
...
} and the same result is with and without second positional argument (the app name) given to the |
Maybe I should also mention that I'm running the electron-installer-dmg and electron-installer-zip and those run just fine. |
After reading docs and on multiple failure, successfully builded by Keeping Happy Coding! |
Both names in packager config and main package info should be the same on your package.json if you are using electron-forge on debian. |
Per the error message, you should be using the executableName in packagerConfig, not name. |
Don't know if |
It would help if you could provide a minimal repository demonstrating the bug. |
I am not reporting a bug, I am providing a possible solution for others having this problem. |
If you need to specify both the name in package.json and in the packager config in Forge, that sounds like either a bug or a problem with documentation, which should be fixed. |
I had the same problem, and it was fixed using this. |
I also experienced this error. I posted how to fix the error after a lot of trial and error. |
Just a small note that might be of assistance to someone: When using electron-forge, and in the case when
|
What version of
electron-installer-debian
are you using?1.1.0
What version of
node
andnpm
are you using?node -v v11.6.0
npm -v 6.5.0
What operating system are you using?
Linux Mint 19.1 Tessa, having Ubuntu 18.04 as base.
Can you compile the example app successfully?
If not, paste here the output of the following commands:
What did you do? Please include the configuration you are using for
electron-installer-debian
.In order to create a *.deb from my electron project, I executed the npm script calls, first
yarn build
thenyarn deb64
. My script setting is:What did you expect to happen?
I expected to get a *.deb file in
dist/installers
.What actually happened?
I got an error:
So, the path
dist/app-linux-x64/administration
obviously does not exist. It should be asking fordist/app-linux-x64
instead. The project's name is called"name": "administration",
, so there might be a mix up inelectron-installer-debian
version 1.1.0.I solved this matter by moving one version down to
electron-installer-debian
version 1.0.1. Now everything works perfectly. I get the *.deb file as expected.The text was updated successfully, but these errors were encountered: