The flatpak format is hitting hard, at least a little stronger than snap packages. Recently, a developer of the project has released a script that will allow us to create a flatpak package from a Linux game installer. So we can convert any Linux game to universal format and be able to install it on any Gnu / Linux distribution.
We have to say that this script is not valid for all games, they are only compatible with native Linux games, installers that need wine or dosbox are not supported. This is important because many of you will be wanting to install games that need Windows dependencies or dependencies that must be emulated.Its installation and process is very simple. First we have to download the script that will carry out all this process. We can get this script through the github repository. Once we have the script, We have to unzip it in the same folder where the installers of the Linux games that we want to convert are.. Now we open the terminal and write the following:
./game-to-flatpak NOMBRE-INSTALADOR flatpak --user remote-add --no-gpg-verify --if-not-exists game-repo repo ( esto solo se hará una vez) flatpak --user remote-ls game-repo ( esto revisa si el juego está disponible en los repositorios flatpak) flatpak --user install game-repo com.gog.Call_of_Cthulhu__Shadow_of_the_Comet (esto último es el nombre del juego que debemos de cambiar por el nuestro)
This script works with the Gog.com repository, a game repository in which we will find hundreds of games for Gnu / Linux, for Windows and for macOS. Many of them are free and do not need a client like Steam to work.
Whether or not it is related to gog.com, this script is very interesting as it helps to convert games to the flatpak format. More interesting would be to get Windows games to go flatpak and install them thanks to Wine, since many users have problems with libraries when installing a Windows game on Gnu / Linux.