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

Doom64EX-Plus on Flatpak #286

Open
mbugni opened this issue Jan 12, 2025 · 3 comments
Open

Doom64EX-Plus on Flatpak #286

mbugni opened this issue Jan 12, 2025 · 3 comments

Comments

@mbugni
Copy link

mbugni commented Jan 12, 2025

I just created a Flatpak build for Doom64EX-Plus. Just for fun.

It works fine:

doom64ex-plus-on-flatpak

Maybe someone would take over this project and publish the app on Flathub. So it will be available for most Linux distro and possibly even for Steam Deck.

@atsb
Copy link
Owner

atsb commented Jan 15, 2025

Nice! Thanks for that. I'm not really a package maintainer myself, but if someone wants to do it as an actual hobby, then I'll support them as best I can to make their lives easier.

@mbugni
Copy link
Author

mbugni commented Jan 16, 2025

I'm not really a package maintainer myself, but if someone wants to do

Well, I could publish it. But I'm already maintaining other apps, and honestly I don't want too many things to manage.

I'll support them as best I can to make their lives easier.

Please, take a look at the manifest, the real build core. The relevant command is:

make CFLAGS="-DDOOM_UNIX_INSTALL=\\\"/var/data/doom64ex-plus\\\" -DDOOM_UNIX_SYSTEM_DATADIR=\\\"/var/data/doom64ex-plus\\\""

It would be nice, in order to better manage a sanboxed app, to have separate folders, like:

DOOM_CONFIG_DIR

It should point to user specific folder for mutable data (like configs, saved games etc).
For Flatpak it should be /var/config/doom64ex-plus.

DOOM_GAME_DATA_PATH

It sould be a list of directories where the engine can look for immutable data:

  • mandatory game files (ie doom64ex-plus.wad and doomsnd.sf2)
  • provided game files (eg DOOM64.WAD)

For Flatpak it should be /app/share/games/doom64ex-plus:/var/data/doom64ex-plus.

Using Flatpak, you can delivery immutable data in private folders (like /app/share/games/doom64ex-plus) but the user can access/modify some app-specific folder like:

  • /var/config/doom64ex-plus matches $HOME/.var/app/io.github.atsb.Doom64EX-Plus/config/doom64ex-plus
  • /var/data/doom64ex-plus matches$HOME/.var/app/io.github.atsb.Doom64EX-Plus/data/doom64ex-plus

@atsb
Copy link
Owner

atsb commented Jan 17, 2025

Thanks for this, I will make those changes

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants