Add files necessary for building a Flatpak of KoLmafia, except for the actual Mafia JAR file. The current instructions expect a file names `mafia.jar` present in the same directory as `com.theinternetvagabond.kolmafia.yml` when the Flatpak is built. Instructions for building and installing, as well as building a stand-alone `kolmafia.flatpak` artifact which can be installed, will be included in a follow-up commit, or in the wiki of this repository. |
||
|---|---|---|
| .gitignore | ||
| com.theinternetvagabond.kolmafia.desktop | ||
| com.theinternetvagabond.kolmafia.metainfo.xml | ||
| com.theinternetvagabond.kolmafia.png | ||
| com.theinternetvagabond.kolmafia.yml | ||
| README.md | ||
Kingdom of Loathing Mafia Flatpak
This repository contains the necessary parts for building a Flatpak which contains OpenJRE and KoLmafia.
OpenJRE is provided by org.freedesktop.Sdk.Extension.openjdk21.
KoLmafia is "a cross-platform desktop tool which interfaces with the online adventure game Kingdom of Loathing." You can find more details about using the software on the KoLmafia Wiki.
Permissions
share=network: Mafia needs network access to access Kingdom of Loathing, and also to provide the local proxy for the relay browser.
socket=fallback-x11 and socket=wayland: These permit Mafia to display the application window.
persist=.kolmafia: This establishes a persistent storage location for Mafia between executions.
Storage
Persistent storage can be found in the following directory:
$HOME/.var/app/com.theinternetvagabond.KoLmafia/.kolmafia
This includes all preferences, caches, and additional files that Mafia will use.
Build Instructions
Run this command to fetch necessary dependencies and build the Flatpak locally:
flatpak-builder --force-clean --user --install-deps-from=flathub --repo=repo --install builddir com.theinternetvagabond.kolmafia
Running Instructions
To run, execute:
flatpak run com.theinternetvagabond.kolmafia