Files
Kaj SchittecatandClaude Opus 4.8 de9d9f252d lua: ship the catalog's apps inside the image for boards without a dependable Store
Kaj's idea, and better than restoring the deleted native pages: the Lua host
already had the mechanism. luaAppLaunchFile() is file-first with an embedded
fallback — it just never had anything seeded into it.

gen-lua-builtin.py generates src/ui-touch/lua_builtin.h from out/firmware/apps/,
the same .lua the Store serves, as C++ raw strings (Snake, RF Monitor, Airtime;
10 KB). luaStoreScanInstalled() now wraps the filesystem scan and seeds any
built-in the scan did not find — after it, so a downloaded copy keeps its own
entry and version, and seeding still happens when there is no filesystem at all.
Tiles, the drawer and the Store's Installed list all work through the existing
paths; launching passes the embedded source, and a downloaded file still wins.

CAP_BUILTIN_LUA_APPS is ON for the V4 only. Flash: V4 85.5% -> 85.8%,
T-Deck 75.5% and Pager 78.1% unchanged. No RAM cost.

So the V4 now has the apps and all 13 languages out of the box; the only thing
it loses without a working Store is browsing for new ones.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-08-04 21:53:43 +02:00
..