flatpak-games
flatpak-games copied to clipboard
Add Nixstaller support
- find archive after the script bits
- unpack archive
- find biggest file and check it's an archive
- unpack that archive
See also: https://cgit.gentoo.org/proj/gamerlay.git/tree/eclass/unpacker.eclass#n255
I use some code in my ./play.it project that seems generic enough to manage multiple Nixstaller archives extraction, you can have a look at it there: https://github.com/vv221/play.it/blob/play.it-2/play.it-2/src/extract_data_from.sh
From my experience, you can’t assume after the first extraction pass that there will be only one archive to extract from there. Sometime there is an archive for architecture-agnostic data, one for 32-bit binaries and one for 64-bit binaries.