Alka Deep Neha
Alka Deep Neha

Reputation: 11

How to prevent .rpm installer built using electron-forge from over-writing system files (e.g. bzip.lib)

We've a cross-platform electron app that we're packaging using "electron-forge". We build installers for different OS platforms, i.e. msi for Windows, .rpm for RHEL, .deb for Ubuntu, and .dmg for MacOS. But when we install the .rpm installer on target machine (Oracle Linux 8.8), it overwrites some of the system libraries, like bzip.lib. I think these libraries are bundled as part of the .rpm installer by electron-forge. Our application doesn't have any dependency on these system files. How can we build the .rpm installer that does not over-write system files on target machines?

While figuring out a solution for this, we stumbled upon flatpak utility , which is also supported by electron-forge and can run the application in a sandbox environment without interferring with host OS files. Is that the preferred way to install an electron app on Linux?

Upvotes: 1

Views: 17

Answers (1)

msuchy
msuchy

Reputation: 5417

You did not provide enough data for a good enough answer. So generally:

You can fix the RPM by installing the libraries to different place (like /usr/local/).

The Flatpak is likely a better solution, and it is a very valid one. I would go this way.

Upvotes: 0

Related Questions