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

Debian package installation is hardcoded under /opt #8732

Open
Jmennius opened this issue Dec 10, 2024 · 0 comments
Open

Debian package installation is hardcoded under /opt #8732

Jmennius opened this issue Dec 10, 2024 · 0 comments

Comments

@Jmennius
Copy link

  • Electron-Builder Version: 26.0.0-alpha.7
  • Node Version: 22.11.0
  • Electron Version: ^33.2.0
  • Electron Type (current, beta, nightly): current
  • Target: x86_64, Debian package

The Debian package installation is hardcoded to install files under /opt. As a result you have a package that is scattered over the user system under /usr and /opt (as you naturally try to integrate it properly with the system).
This causes a number of issues, starting from the weird dance with update-alternatives to place the binary into the PATH and other issues with mounts and permissions.
Arguably, it's also not the best practice to put package manager managed stuff under /opt at all (I understand this might be common).

At least, I think it would be nice to allow the user to configure this behavior.
If this is something you'd be willing to accept - I might looks into it.
In this case, most of the package core files should go into /usr/lib/<package-name> (instead of /opt/<package-name>) with other files installed under respective directories.

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

No branches or pull requests

1 participant