Skip to content

Make possible to do a portable build of XQF#252

Merged
illwieckz merged 1 commit intomasterfrom
illwieckz/portable
Jul 26, 2025
Merged

Make possible to do a portable build of XQF#252
illwieckz merged 1 commit intomasterfrom
illwieckz/portable

Conversation

@illwieckz
Copy link
Copy Markdown
Member

Make possible to do a portable build of XQF.

  • USE_RELATIVE_PREFIX: Make the executable looks around for its own files.
  • USE_FHS: Install files following the File Hierarchy Standard.

This is how one can do a portable installation where the binaries are stored at the root of the install folder and the required data is searched next to them at run time:

cmake -DUSE_RELATIVE_PREFIX=ON -DUSE_FHS=OFF

It makes possible to build and distribute compiled binaries in a tarball.

Make possible to do a portable build of XQF.

- USE_RELATIVE_PREFIX: Make the executable looks around for its own files.
- USE_FHS: Install files following the File Hierarchy Standard.

This is how one can do a portable installation where the binaries
are stored at the root of the install folder and the required
data is searched next to them at run time:

cmake -DUSE_RELATIVE_PREFIX=ON -DUSE_FHS=OFF

It makes possible to build and distribute compiled binaries in a tarball.

This relies on some code under the BSD license I copied from the
Dæmon engine¹. I place the glue around under the CC0 1.0 license
(public domain like).

¹ https://github.com/DaemonEngine/Daemon
@illwieckz
Copy link
Copy Markdown
Member Author

illwieckz commented Jul 25, 2025

This relies on some code under the BSD license I copied from the Dæmon engine. I place the glue around under the CC0 1.0 license (public domain like).

@illwieckz illwieckz force-pushed the illwieckz/portable branch from 632e46c to fbeb680 Compare July 25, 2025 18:54
@illwieckz
Copy link
Copy Markdown
Member Author

illwieckz commented Jul 25, 2025

For now there is one bug remaining, and I have no explanation for it: XQF manages to find its UI file and external images like the flag icons, but fails to load the translations.

@illwieckz
Copy link
Copy Markdown
Member Author

For now there is one bug remaining, and I have no explanation for it: XQF manages to find its UI file and external images like the flag icons, but fails to load the translations.

I fixed it, it was a stupid copy paste.

Now everything works as expected.

@illwieckz illwieckz force-pushed the illwieckz/portable branch 2 times, most recently from 35bc6b9 to 7ceac7d Compare July 26, 2025 21:23
@illwieckz illwieckz merged commit 75a8cdb into master Jul 26, 2025
4 checks passed
@illwieckz illwieckz deleted the illwieckz/portable branch July 26, 2025 23:09
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