Linux: enable HTML5 and Android builds, fix display.save() colours - #936
Open
chkuendig wants to merge 5 commits into
Open
Linux: enable HTML5 and Android builds, fix display.save() colours#936chkuendig wants to merge 5 commits into
chkuendig wants to merge 5 commits into
Conversation
The packager is already compiled in; only CORONABUILDER_HTML5 was missing, so the binary answered that HTML5 builds are not supported on this operating system.
Defines CORONABUILDER_ANDROID, adds the Rtt_AndroidSupportTools.c the factory calls from inside that gate, gives the AndroidValidation path and GetResourceDirectory() a Linux arm — the latter ran off the end of a function returning const char*, killing the build in free() with no diagnostic.
The Android packager reads it from disk rather than through LUA_SOURCES, so without it every build stops at "Could not find script file".
The paths start empty, so appending left the builder writing to /Documents and its three siblings, which only root can create; they now go under TMPDIR, one directory per uid (first reported in coronalabs#891).
A capture is tagged kBGRA but the packed readback lands in memory as A,R,G,B, so the byte-order writers swapped red and green and took blue from the alpha byte; the Linux writer now reports kARGB, which savePNG and saveJPG grow a case for.
chkuendig
force-pushed
the
linux-builder-fixes
branch
from
August 15, 2026 12:21
0f268c8 to
39e3789
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Everything Solar2DBuilder needs to build HTML5 and Android apps on Linux, plus
the a fix for broken colours in
display.save()on the Simulator in Linux.This supersedes #891, which enables the Android half.
I tested this using Docker on Linux and macOS hosts.