Hi!
This is a manifest to install the installer as a flatpak. It contains the following:
com.thedarkmod.TheDarkMod.yml - Flatpak manifest, easily readable.
com.thedarkmod.TheDarkMod.desktop - Desktop file. You can right click on it in an app launcher and choose "Installer" to open the installer program.
com.thedarkmod.TheDarkMod.png - Icon for .desktop file, can't use .ico for this.
launcher.sh - Simple script to initialize installation directory and choose between installer or game.
On first run the script will copy the installer to a sandboxed location under your user home (~/.var/app/com.thedarkmod.TheDarkMod/data/TheDarkMod), and then start it. The game will then be installed to this location. Afterwards, the script will check for the game launcher instead and run that if possible, otherwise it'll try to run the installer again. You can also open the installer by right-clicking on the icon and choosing "Installer", or manually by running:
flatpak run com.thedarkmod.TheDarkMod install
For the people using prime/optimus systems it should also default to running on the dedicated GPU rather than the internal when using the desktop-file.
To test this app locally you need to install flatpak-builder and the org.freedesktop.Sdk runtime in flatpak. You can then build and install the package by extracting the zip, entering the tdm directory in a terminal and running:
flatpak-builder --force-clean --user --install build com.thedarkmod.TheDarkMod.yml
To get this app published on flathub you can submit it via the instructions at https://github.com/flathub/flathub/wiki/App-Submission. I've never submitted an app myself so I don't know exactly how it's done, but AFAICT, it should just be putting these 4 files in a git repo and send a pull request to the flathub repo on github.
Feel free to edit any files as you see fit. The app name was based on the webpage URL, but maybe you want to change that or edit the capitalization or something like that.
thedarkmod-221003.zip