Skip to content

Add website support for Flatpak runner installer scripts - #774

Open
legluondunet wants to merge 1 commit into
lutris:masterfrom
legluondunet:pr/flatpak-installer-clean
Open

legluondunet wants to merge 1 commit into
lutris:masterfrom
legluondunet:pr/flatpak-installer-clean

Conversation

@legluondunet

Copy link
Copy Markdown

Title: Add website support for Flatpak runner installer scripts

Summary

This PR adds support for Flatpak-based installer scripts to the Lutris website.

It complements the Flatpak runner improvements proposed for the Lutris client.

Changes

  • Register the Flatpak runner in the website database.
  • Support Flatpak runner selection in installer submission forms.
  • Validate Flatpak-specific installer configuration.
  • Support Flatpak installer scripts through the existing submission, moderation, and API workflows.
  • Add automated tests for forms, validation, runner registration, and HTTP endpoints.

Compatibility

This change is designed to work with the companion Lutris client PR introducing the install_flatpak task.

Example installer configuration:

game:
  appid: technology.haniwa.ai5-sdl2
  args: '--font "MS PGothic.ttf"'

installer:
- task:
    name: install_flatpak
    file: engine

Testing

The website's GitHub Actions CI passed, including the automated test suite.

Related PR

Companion PR: Add Flatpak runner with installer and uninstall support (Lutris client).


legluondunet assisted by ChatGPT (OpenAI)

Register the runner, validate submissions and cover forms, moderation and API workflows with tests.

legluondunet assisted by ChatGPT (OpenAI)
@legluondunet

legluondunet commented Oct 15, 2026 •

Copy link
Copy Markdown
Author

you can test this pr with this script installer code:

files:
- engine: https://github.com/nunuhara/ai5-sdl2/releases/download/1.5.0/ai5-sdl2-linux-x86_64-1.5.0.flatpak
- font:
     url: https://github.com/xerysherry/uEmuera/raw/refs/heads/master/Assets/Resources/Fonts/MS%20PGothic.ttf
     filename: MS PGothic.ttf
- data: https://archive.org/download/yuno.-7z/YUNO.7z
game:
  appid: technology.haniwa.ai5-sdl2
  args: '--font "MS PGothic.ttf"'
installer:
- task:
     name: install_flatpak
     file: engine
- extract:
     file: data
     dst: $GAMEDIR
- copy:
     src: font
     dst: $GAMEDIR

this script will install Flatpak package to userland and complementary files in ~/Games/name_of_the_game

@legluondunet

Copy link
Copy Markdown
Author

related pr for Lutris client: lutris/lutris#6966

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

Successfully merging this pull request may close these issues.

1 participant