Upgrade to Bun 1.3.2 / OpenCode 1.18.16 with self-contained Termux packaging - #24
Open
baiyun1123 wants to merge 1 commit into
Open
Upgrade to Bun 1.3.2 / OpenCode 1.18.16 with self-contained Termux packaging#24baiyun1123 wants to merge 1 commit into
baiyun1123 wants to merge 1 commit into
Conversation
…mux packaging Major upgrades: - Bun target+host both pinned to 1.3.2 (module graph format now matches exactly, removing the old 36-byte vs 52-byte stride workaround) - OpenCode 1.3.13 -> 1.18.16 (latest tested release) - WebKit commit updated to match Bun 1.3.2's dependency - OpenTUI version pinned to 0.4.5 New features: - OpenTUI external Android assets: parser.worker.js, tree-sitter.wasm and native libopentui.so are materialized to the real filesystem (OTUI_ASSET_ROOT) instead of relying on Bun's bundled file imports, which do not return a usable default value on Android - Termux launcher (scripts/opencode-wrapper.sh): sets up TMPDIR, LD_PRELOAD (libtagfix), LD_LIBRARY_PATH, OPENTUI_LIB_PATH, OTUI_ASSET_ROOT, and runs under proot when available for /tmp mapping - Heap tagging fix (src/libtagfix.c): disables Android 11+ memory tagging (M_BIONIC_SET_HEAP_TAGGING_LEVEL) which conflicts with JSC NaN-boxed pointers - PTY native library (librust_pty_arm64.so) now packaged - --yolo flag unhidden in --help for Termux (patches/opencode/termux-yolo.patch) Packaging / build: - Version-isolated build dirs and patch filenames keyed by Bun/WebKit version - Zig NDK libc config (configs/zig-android-libc.conf.in) instead of direct libc.so stub linking for libopentui.so - Self-contained packages: build libtagfix.so, package opentui-assets, add proot + ripgrep dependencies - WebKit linker adds -llog for Android logging - Build hardening: regenerate Bun CMake source lists, idempotent Zig cache, fallback host-Bun PATH detection
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.
This PR upgrades the toolchain and adds self-contained Termux packaging for OpenCode on Android.
Key changes: