Skip to content

Issue with electron-installer-debian in Certain Linux Environments #346

Open
@flyyuan

Description

What version of electron-installer-debian are you using?

  • Not specified.

What version of node and npm are you using?

  • Node: v20.6.0
  • NPM: 9.8.1

What operating system are you using?

Can you compile the example app successfully?

  • Not specified.

If not, paste here the output of the following commands:

$ git clone https://github.com/electron-userland/electron-installer-debian.git
$ cd electron-installer-debian/example
$ DEBUG='electron-installer-debian' npm run build

Output:

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)

What did you do? Please include the configuration you are using for electron-installer-debian.

  • Not specified.

What did you expect to happen?

  • Not specified.

What actually happened?

  • I encountered an error related to permissions when trying to build the app using electron-installer-debian in a GitHub codespace environment.

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions