-- Flatpak finish-args / packaging contract. -- luajit tests/engine/flatpak_manifest_test.lua package.path = "./?.lua;./?/init.lua;" .. package.path local T = require("tests.harness") local check = T.check local f = assert(io.open("flatpak/com.theboisclub.gen1recomp.yml", "rb")) local yml = f:read("*a") f:close() check(yml:find("%-%-device=all", 1, false) or yml:find("--device=all", 1, true), "Flatpak finish-args include --device=all for gamepads") check(yml:find("--share=network", 1, true), "Flatpak shares network") check(yml:find("--filesystem=home", 1, true), "Flatpak allows home for ROM import") check(yml:find("com.theboisclub.gen1recomp", 1, true), "Flatpak app-id present") local meta = assert(io.open("flatpak/com.theboisclub.gen1recomp.metainfo.xml", "rb")) local xml = meta:read("*a") meta:close() check(xml:find("", 1, true), "AppStream metainfo includes releases") check(xml:find("