diff --git a/README.md b/README.md new file mode 100644 index 0000000..c368441 --- /dev/null +++ b/README.md @@ -0,0 +1,24 @@ +# GZDoom Flatpak edition # + +## Installation of gamedata ## +* Copy any commercial iwad into the folder `~/.config/gzdoom/` +* Optionally, configure the `~/.config/gzdoom/gzdoom.ini` file to load other directories + +## Run with custom wads +Just as with the standalone GZDoom, you can pass commands through +``` +flatpak run org.zdoom.GZDoom -file ~/.config/gzdoom/pwads/PL2.WAD + +cd ~/.config/gzdoom/pwads/ +flatpak run org.zdoom.GZDoom -file ./PL2.WAD +``` + +For more info, see +* https://zdoom.org/wiki/Command_line_parameters +* https://zdoom.org/wiki/Installation_and_execution_of_ZDoom + +## Accessing files on unconventional spots ## +``` +flatpak override org.zdoom.GZDoom --filesystem=/OTHER/LOCATION/WITH/WADS --user +``` + diff --git a/org.zdoom.GZDoom.yaml b/org.zdoom.GZDoom.yaml index 7529434..5d25e5e 100644 --- a/org.zdoom.GZDoom.yaml +++ b/org.zdoom.GZDoom.yaml @@ -13,17 +13,16 @@ finish-args: - --share=ipc - --socket=pulseaudio -# For SSGL -- --talk-name=org.gnome.GConf -#- --filesystem=xdg-run/dconf -#- --filesystem=~/.config/dconf:ro -#- --talk-name=ca.desrt.dconf -#- --env=DCONF_USER_CONFIG_DIR=.config/dconf +# Where would wads be? +- --filesystem=xdg-desktop:ro +- --filesystem=xdg-documents:ro +- --filesystem=xdg-download:ro +# Screenshots +- --filesystem=xdg-pictures -#based on GZDoom +# Based on GZDoom - --env=DOOMWADDIR=/app/share/games/doom - --persist=.config/gzdoom -- --persist=.config/SSGL cleanup: - /app/include @@ -90,30 +89,28 @@ modules: url: https://github.com/freedoom/freedoom/releases/download/v0.11.3/freedoom-0.11.3.zip sha256: 28a5eafbb1285b78937bd408fcdd8f25f915432340eee79da692eae83bce5e8a build-commands: - - ls -la - install -Dm 644 freedoom2.wad /app/share/games/doom - install -Dm 644 freedoom1.wad /app/share/games/doom - - ls -la /app/share/games/doom - name: shareware + disabled: true buildsystem: simple sources: - - type: extra-data - filename: doom1.wad - url: http://distro.ibiblio.org/pub/linux/distributions/slitaz/sources/packages/d/doom1.wad - strip-components: 0 - sha256: 1d7d43be501e67d927e415e0b8f3e29c3bf33075e859721816f652a526cac771 - size: 4196020 + - type: archive + filename: doom1.zip + url: http://downloads.zdaemon.org/wads/doom1.zip + sha256: a86396fc9f8bca0e07caec3ef324786ab967995cf94690d077d94784fae2cae4 + size: 1756172 build-commands: - ls -la - - #install -Dm 644 doom1.wad /app/share/games/doom + - install -Dm 644 doom1.wad /app/share/games/doom - name: launcher buildsystem: simple sources: - type: script commands: - - gzdoom +fluid_patchset /app/share/sounds/sf2/gzdoom.sf2 -file lights.pk3 brightmaps.pk3 $@ + - gzdoom +fluid_patchset /app/share/sounds/sf2/gzdoom.sf2 -file lights.pk3 brightmaps.pk3 $@ dest-filename: gzdoom.sh - type: file path: org.zdoom.GZDoom.desktop