Skip to content

Community: Linux Solar2DBuilder builds for CI/CD (Android APK)Β #890

Description

@shtse8

Hey Solar2D community πŸ‘‹

We needed to build Android APKs from Solar2D on Linux CI runners, but there's no official Linux build of Solar2DBuilder. After digging into the source, it turned out to be mostly #ifdef gaps β€” Solar2D's C++ code is cross-platform, it just hadn't been wired up for Linux.

We fixed 5 small issues, bundled the result, and published it as a community repo:

https://github.com/Cubeage/solar2d-linux

  • Pre-built binaries with bundled libs (works on any distro)
  • Auto-rebuilds when Solar2D releases a new version
  • Patches documented if you want to build yourself

The fixes are straightforward β€” adding a Rtt_LINUX_ENV branch wherever Mac/Win were handled, wiring up GetResourceDirectory() via /proc/self/exe, and using $TMPDIR instead of /TemporaryFiles. Would be happy to upstream these as a PR if the team is interested.

Sharing here in case it's useful to others!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions