electron / forge

:electron: A complete tool for building and publishing Electron applications
https://electronforge.io
MIT License
6.29k stars 487 forks source link

Conflict when installing alongside other electron apps on Fedora #3594

Open p2kmgcl opened 3 weeks ago

p2kmgcl commented 3 weeks ago

Pre-flight checklist

Electron Forge version

7.3.0

Electron version

29.0.1

Operating system

Fedora 33

Last known working Electron Forge version

No response

Expected behavior

Application should be installed correctly on Fedora (when using electron forge RPM maker), with no errors.

Actual behavior

When other electron applications are installed on the computer, it throws conflict errors during the install process:

image

These errors can be avoided passing --excludepath=/usr/lib/.build-id to rpm when installing the app, but it requires to use the terminal to install it, which is not ideal.

Steps to reproduce

  1. Build an electron app using electron rpm builder
  2. Install the app in a fedora 33 system which already has some other electron app (slack, discord...)

Additional information

I have seen this error mentioned in other places:

And also there are some fixes that are applicable to electron builder:

However, apparently we are not able to pass build parameters to rpm with electron forge. It would be nice to have this solved internally by electron forge (if the solution is valid for all projects) or either allow passing parameters to rpm like electron builder does.