-
-
Notifications
You must be signed in to change notification settings - Fork 506
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
Electron Forge not working in Github Codespaces #2926
Labels
Comments
As an alternative/workaround, you can use electron-deboa-maker to package your app to Ubuntu. It doesn't depend on dpkg or fakeroot, so it should work fine. |
Error root is electron-userland/electron-installer-debian#346 An unhandled rejection has occurred inside Forge:
Error: Command failed with a non-zero return code (2):
fakeroot dpkg-deb --build /tmp/electron-installer--30602-hglHQz375JIg/my-app_1.0.0_amd64
dpkg-deb: error: control directory has bad permissions 756 (must be >=0755 and <=0775)
at ChildProcess.<anonymous> (/workspaces/forge/node_modules/electron-installer-debian/node_modules/@malept/cross-spawn-promise/dist/src/index.js:99:24)
at ChildProcess.emit (node:events:514:28)
at ChildProcess.emit (node:domain:489:12)
at maybeClose (node:internal/child_process:1105:16)
at ChildProcess._handle.onexit (node:internal/child_process:305:5) |
I fixed it in the PR. I hope to update electron-installer-debian afterward. @erickzhao |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Pre-flight checklist
Electron Forge version
6.0.0-beta.65
Electron version
20.0.3
Operating system
Ubuntu 20.04.4 x64
Last known working Electron Forge version
No response
Expected behavior
I expected the npm run make command to produce files for Ubuntu, Mac and Windows and show them and a dist folder for distrubution
Actual behavior
It threw an error:
External binaries need to be installed: dpkg, fakeroot
But these packages are already installed
Steps to reproduce
`
npx create-electron-app@latest app
cd app
npm run make
`
Additional information
However it works with electron-build
The text was updated successfully, but these errors were encountered: