fix(build): the logo and fonts are made only where the Vulkan back end is compiled (AppImage builds failed) #1567

Merged
NotRexed merged 1 commit from fix/appimage-fonts into main 2026-11-10 08:46:33 +00:00
NotRexed commented 2026-11-10 08:46:21 +00:00 (Migrated from github.com)

Since #1459 (Dear ImGui menu), nx2/build.py wrote the start-up logo and the overlays' fonts (nx2/ui_fonts.py, from third_party/fonts/libertinus) at the start of every build. The Linux AppImage ships the Vulkan back end prebuilt (HOOKSHOT_VK_PREBUILT) and carries neither third_party/fonts nor the back end's sources, so every player build from the AppImage on main stopped:

FileNotFoundError: [Errno 2] No such file or directory: '/tmp/.mount_Hooksh.../usr/share/hookshot/nx2/../third_party/fonts/libertinus/LibertinusSans-Regular.ttf'

(reported on Discord, 2026-11-10, Linux AppImage of main)

Both are only used by the back end's own compile, so they are now made inside the branch that compiles it from source. A Windows or source build does the same as before, and a build with a prebuilt back end no longer needs them. v2.0.12 (release/v2.0.12) is not affected: it predates #1459.

Tested: build.py parses, and logo_text/fonts_cpp are now defined and used only inside that branch. The CI AppImage and Windows builds will confirm.

🤖 Generated with Claude Code

Since #1459 (Dear ImGui menu), `nx2/build.py` wrote the start-up logo and the overlays' fonts (`nx2/ui_fonts.py`, from `third_party/fonts/libertinus`) at the start of every build. The Linux AppImage ships the Vulkan back end prebuilt (`HOOKSHOT_VK_PREBUILT`) and carries neither `third_party/fonts` nor the back end's sources, so every player build from the AppImage on main stopped: ``` FileNotFoundError: [Errno 2] No such file or directory: '/tmp/.mount_Hooksh.../usr/share/hookshot/nx2/../third_party/fonts/libertinus/LibertinusSans-Regular.ttf' ``` (reported on Discord, 2026-11-10, Linux AppImage of main) Both are only used by the back end's own compile, so they are now made inside the branch that compiles it from source. A Windows or source build does the same as before, and a build with a prebuilt back end no longer needs them. v2.0.12 (`release/v2.0.12`) is not affected: it predates #1459. Tested: `build.py` parses, and `logo_text`/`fonts_cpp` are now defined and used only inside that branch. The CI AppImage and Windows builds will confirm. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
Commenting is not possible because the repository is archived.
No description provided.