From 20b36b5f6b374eebf968a5286e6526df870baf60 Mon Sep 17 00:00:00 2001 From: Grisha Date: Mon, 12 Aug 2024 20:14:19 +0300 Subject: [PATCH 1/4] add download from flathub --- README.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/README.md b/README.md index 82903d8072e58..28457259ef355 100644 --- a/README.md +++ b/README.md @@ -43,6 +43,10 @@ Ncurses and tiles versions are available in the [official repos](https://tracker `sudo apt install cataclysm-dda-curses cataclysm-dda-sdl` +#### Flathub + +[![Download from Flathub](https://flathub.org/assets/badges/flathub-badge-en.png)](https://flathub.org/apps/org.cataclysmdda.CataclysmDDA) + ## Compile Please read [COMPILING.md](doc/COMPILING/COMPILING.md) - it covers general information and more specific recipes for Linux, OS X, Windows and BSD. See [COMPILER_SUPPORT.md](doc/COMPILING/COMPILER_SUPPORT.md) for details on which compilers we support. And you can always dig for more information in [doc/](https://github.com/CleverRaven/Cataclysm-DDA/tree/master/doc). From 4195da7ceb2b12622659c12987d248b97f9edc00 Mon Sep 17 00:00:00 2001 From: Grisha Date: Mon, 12 Aug 2024 20:16:00 +0300 Subject: [PATCH 2/4] add yml flatpak manifest --- org.cataclysmdda.CataclysmDDA.yml | 33 +++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 org.cataclysmdda.CataclysmDDA.yml diff --git a/org.cataclysmdda.CataclysmDDA.yml b/org.cataclysmdda.CataclysmDDA.yml new file mode 100644 index 0000000000000..40fb0fea53617 --- /dev/null +++ b/org.cataclysmdda.CataclysmDDA.yml @@ -0,0 +1,33 @@ +id: "org.cataclysmdda.CataclysmDDA" +runtime: "org.freedesktop.Platform" +runtime-version: '23.08' +sdk: org.freedesktop.Sdk +command: cataclysm-tiles +finish-args: + - --socket=pulseaudio + - --socket=wayland + - --socket=fallback-x11 + - --share=ipc + - --device=dri + +modules: + - name: cataclysm-tiles + buildsystem: simple + build-options: + env: + MAKE_ARGS: "PREFIX=/app LANGUAGES=all USE_XDG_DIR=1 TILES=1 SOUND=1 RELEASE=1 RUNTESTS=0 ASTYLE=0 LINTJSON=0" + build-commands: + - sed -i "/#WARNINGS = -w/c WARNINGS = -w" Makefile + - make -j $FLATPAK_BUILDER_N_JOBS $MAKE_ARGS + - make $MAKE_ARGS localization + - make $MAKE_ARGS install + - install -Dm644 data/xdg/org.cataclysmdda.CataclysmDDA.svg /app/share/icons/hicolor/scalable/apps/org.cataclysmdda.CataclysmDDA.svg + - install -Dm755 data/xdg/org.cataclysmdda.CataclysmDDA.desktop /app/share/applications/org.cataclysmdda.CataclysmDDA.desktop + - install -Dm644 org.cataclysmdda.CataclysmDDA.appdata.xml /app/share/metainfo/org.cataclysmdda.CataclysmDDA.appdata.xml + sources: + - type: git + url: https://github.com/CleverRaven/Cataclysm-DDA.git + commit: "3a1e04656d51c79af87b5505b1b3c37867378cce" + - type: file + url: https://raw.githubusercontent.com/CleverRaven/Cataclysm-DDA/dedfc2e5310b505a9728098d1b59777cb8b1e861/data/xdg/org.cataclysmdda.CataclysmDDA.appdata.xml + sha256: ca7bf1a3a0598729440aaae73111ffa3992121fa19f0e36d988eee22055db29e From 4f58c002e105f23526a87d5be4a16e1c47b591c7 Mon Sep 17 00:00:00 2001 From: Grisha Date: Mon, 12 Aug 2024 20:50:33 +0300 Subject: [PATCH 3/4] flathub button reduction --- README.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 28457259ef355..f2a786c36d641 100644 --- a/README.md +++ b/README.md @@ -45,7 +45,9 @@ Ncurses and tiles versions are available in the [official repos](https://tracker #### Flathub -[![Download from Flathub](https://flathub.org/assets/badges/flathub-badge-en.png)](https://flathub.org/apps/org.cataclysmdda.CataclysmDDA) + + Download from Flathub + ## Compile From 45ada68f4c6994ae83f297d4bb3e75a284038a01 Mon Sep 17 00:00:00 2001 From: Grisha Date: Mon, 12 Aug 2024 20:59:25 +0300 Subject: [PATCH 4/4] simple text link to flathub dowload page --- README.md | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/README.md b/README.md index f2a786c36d641..56c94e6454f28 100644 --- a/README.md +++ b/README.md @@ -45,9 +45,7 @@ Ncurses and tiles versions are available in the [official repos](https://tracker #### Flathub - - Download from Flathub - +[Download from Flathub](https://flathub.org/apps/org.cataclysmdda.CataclysmDDA) ## Compile