forge
forge copied to clipboard
Electron Forge not working in Github Codespaces
Pre-flight checklist
- [X] I have read the contribution documentation for this project.
- [X] I agree to follow the code of conduct that this project uses.
- [X] I have searched the issue tracker for a bug that matches the one I want to file, without success.
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
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 https://github.com/electron-userland/electron-installer-debian/issues/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 https://github.com/electron-userland/electron-installer-debian/pull/347