widelands-flatpak
Widelands is an open source (GPLed), realtime-strategy game.
This repo is about the flatpak package.
Instructions
Requirements
For EL7:
# yum install 'flatpak' 'flatpak-builder'
You may also wish to install the xdg-desktop-portal*
packages:
# yum install 'xdg-desktop-portal*'
See also:
Adding repository
$ flatpak remote-add --if-not-exists "flathub" "https://dl.flathub.org/repo/flathub.flatpakrepo"
See also:
Prepare
$ flatpak --user install "flathub" "org.freedesktop.Sdk//19.08"
$ flatpak --user install "flathub" "org.freedesktop.Platform//19.08"
Clone this repository, then checkout the right branch.
$ git submodule init
$ git submodule update
Build
$ flatpak-builder "build" "org.widelands.Widelands.yaml" --force-clean --install-deps-from="flathub"
Test
$ flatpak-builder --run "build" "org.widelands.Widelands.yaml" "sh"
Test run
$ flatpak-builder --run "build" "org.widelands.Widelands.yaml" "widelands"
Create repo
$ flatpak-builder --repo="repo" --force-clean "build" "org.widelands.Widelands.yaml"
Install
$ flatpak --user remote-add --no-gpg-verify "widelands" "repo"
$ flatpak --user install "widelands" "org.widelands.Widelands"
Run
$ flatpak --user run "org.widelands.Widelands"
Uninstall
$ flatpak --user uninstall "org.widelands.Widelands"
$ flatpak --user remote-delete "widelands"
Build single-file bundle
$ flatpak build-bundle "repo" "widelands.flatpak" "org.widelands.Widelands" --runtime-repo="https://flathub.org/repo/flathub.flatpakrepo"
Install single-file bundle
If you have already installed the package, you have to uninstall it before continuing.
$ flatpak --user install "widelands.flatpak"
See also:
FAQ
Does the game have access to the host file system?
No, it is completely sandboxed.
Does flatpak-ed Widelands run as superuser?
Why not a RPM package?
I already provided COPR repo with (S)RPM packages for EL and Fedora.
Are you the author of Widelands?
No, I only created the flatpak package for it.
See also: