forge icon indicating copy to clipboard operation
forge copied to clipboard

[maker-deb] Failed to create DEB package

Open hron84 opened this issue 1 year ago • 2 comments

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

7.6.0

Electron version

v33.3.1

Operating system

Ubuntu 24.04.1 LTS

Last known working Electron Forge version

No response

Expected behavior

DEB package corretly builds

Actual behavior

❯ Making distributables
  ✖ Making a deb distributable for linux/x64
    › Command failed with a non-zero return code (2):
      fakeroot dpkg-deb --build /tmp/electron-installer--51997-DZStMEFPGauK/youtube-desktop_1.0.5_amd64
      dpkg-deb: error: control directory has bad permissions 750 (must be >=0755 and <=0775)

Steps to reproduce

I want to build https://github.com/mikepruett3/youtube-desktop on my machine based on the documentation of the project.

As far as I see, the project itself does not configure anything for electron-forge/maker-deb other than the icon file. Therefore I don!t think it is the project's fault, I assume Ubuntu changed some expectations in dpkg-deb according to the control directory and electron-forge setups the folder incorrectly.

Additional information

No response

hron84 avatar Jan 17 '25 12:01 hron84

Does this work for you for the base Forge template (via npx create-electron-app@latest)?

erickzhao avatar Jan 31 '25 01:01 erickzhao

Running into the same problem here at my company. Using @electron-forge/maker-deb version 7.8.0. Specifically, it is failing in a GitHub CodeSpace based on the mcr.microsoft.com/devcontainers/python:3.12 image. It is Debian based and required us to install dpkg and fakeroot after that, we were hit with the same error up above. No problems on Ubuntu.

Seems like this is a common issue with certain distros since I saw the same error in a different Electron package as well when looking into the error. https://github.com/electron-userland/electron-installer-debian/pull/347

iDom818 avatar Apr 23 '25 00:04 iDom818