admin管理员组文章数量:1205440
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?
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?
Share Improve this question asked Jan 20 at 11:33 Alka Deep NehaAlka Deep Neha 111 bronze badge 1- Please provide enough code so others can better understand or reproduce the problem. – Community Bot Commented Jan 20 at 18:46
1 Answer
Reset to default 0You 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.
本文标签:
版权声明:本文标题:How to prevent .rpm installer built using electron-forge from over-writing system files (e.g. bzip.lib) - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1738702099a2107719.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论