Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Flathub download button and Flatpak manifest #75625

Merged
merged 4 commits into from
Aug 13, 2024
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,12 @@ Ncurses and tiles versions are available in the [official repos](https://tracker

`sudo apt install cataclysm-dda-curses cataclysm-dda-sdl`

#### Flathub

<a href="https://flathub.org/apps/org.cataclysmdda.CataclysmDDA">
<img src="https://flathub.org/assets/badges/flathub-badge-en.png" alt="Download from Flathub" width="200"/>
</a>
kevingranade marked this conversation as resolved.
Show resolved Hide resolved

## 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).
Expand Down
33 changes: 33 additions & 0 deletions org.cataclysmdda.CataclysmDDA.yml
Original file line number Diff line number Diff line change
@@ -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
Loading