Flatpak build recipes used for Imprimis and its dependencies.
Like the game itself, this Flatpak only supports building for x86_64 architectures.
Execute the following git command to download the code with its submodules, then change directory to the code repository.
git clone https://github.com/project-imprimis/org.imprimis.Imprimis.flatpak.git --recurse-submodules
cd org.imprimis.Imprimis.flatpakTo build and use the Flatpak scripts, you must have flatpak and flatpak-builder installed, which should be available in your Linux distribution's package manager.
To install the Flatpak's dependencies, including the build SDK, run the following command:
flatpak install org.freedesktop.Platform/x86_64/23.08 org.freedesktop.Sdk/x86_64/23.08 org.freedesktop.Platform.GL.default/x86_64/23.08If you wish to build the Flatpak only for local installation, you can use the following command:
flatpak-builder --user --install build-dir org.imprimis.Imprimis.jsonAlternatively, if you wish to build the Flatpak into an (unsigned) repository, then generate a sharable imprimis.flatpak bundle, you can run:
flatpak-builder --repo=local build-dir org.imprimis.Imprimis.json
flatpak build-bundle ./local imprimis.flatpak org.imprimis.ImprimisYou can then install the runtime dependencies, then the bundle file by invoking:
flatpak install org.freedesktop.Platform/x86_64/23.08 org.freedesktop.Platform.GL.default/x86_64/23.08
flatpak install imprimis.flatpak