This simple 'hello world' project demonstrates how to publish your project into some of the most common linux packages.
The bash scripts (deb.sh, flatpak.sh, etc) performs all the steps needed to make each package, but then reverts the project folder back to it's original state. This is because each package system expects a different project layout, and all of them inside one project seems to get really confusing.
Below are the system dependencies you will need to build each package type:
For building .DEB
files, you'll need the following installed on your
debian-based system (which you'll very likely already have):
sudo apt install dpkg
For building .flatpak
files, you'll need the following installed on
your debian-based system:
sudo apt install flatpak
sudo flatpak install flathub org.freedesktop.Platform//19.08 org.freedesktop.Sdk//19.08
For building .rpm
files, you'll need the following installed on your
debian-based system:
sudo apt install rpm
For building .exe
files, you'll need the following installed on your
debian-based system:
sudo apt install mingw-w64
sudo apt install wine # for testing
the scripts
folder contains all of the scripts. If you only wanted a .deb
file,
you would just run the deb.sh
script. And so on...
The ALL.sh
script will build all supported packages.