Wednesday, December 29, 2021

[SOLVED] How to build .deb .rpm .dmg etc with one script

Issue

Here is my problem:

I have a program and would like to distribute it in binary format so that users don't need to compile it by themselves.

I have already build a .deb package. However, as I remember, there should be some program, which takes one configuration file, and produces different binary packages in different formats, like .deb, .rpm, or even .dmg, .msi, etc. Meaning, I only need to tell it which file should be included in the package (and how to build it), it can produce different packages for me.

After googling some key words, I noticed it's hard to find such program without knowing its name. (I do think there should be something like that. In fact, I remembered I saw it in somewhere.)


Solution

Effing Package Management can do both rpm and deb (get it from https://github.com/jordansissel/fpm)

For cross-platform deployments of the sort you are talking about, you could try http://project-builder.org/

*Note - I never used these tools but I've heard of them



Answered By - Srdjan Grubor