Skip to content
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

Closed
3 tasks done
BrakingChanges opened this issue Aug 22, 2022 · 3 comments
Closed
3 tasks done

Electron Forge not working in Github Codespaces #2926

BrakingChanges opened this issue Aug 22, 2022 · 3 comments

Comments

@BrakingChanges
Copy link

Pre-flight checklist

  • I have read the contribution documentation for this project.
  • I agree to follow the code of conduct that this project uses.
  • 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

@erikian
Copy link
Member

erikian commented Aug 23, 2022

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.

@flyyuan
Copy link

flyyuan commented Sep 12, 2023

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)

@flyyuan
Copy link

flyyuan commented Sep 12, 2023

I fixed it in the PR. I hope to update electron-installer-debian afterward. @erickzhao
electron-userland/electron-installer-debian#347

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants