Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
33 commits
Select commit Hold shift + click to select a range
098f3d5
release: pin 2.4.1 with OpenTUI 0.9.4 and Zig 0.17.1
Spectra010s Nov 24, 2026
ebccc7d
docs: keep the 2.4.1 Android section to what this release changes
Spectra010s Nov 25, 2026
e85a1de
chore: remove pacman packaging, docs/history and the v1 Makefile surface
Spectra010s Nov 27, 2026
280f6ab
release: pin 2.4.2 with OpenTUI 0.9.9
Spectra010s Nov 27, 2026
2ddc65e
docs: update AGENTS.md for 2.4.2
Spectra010s Nov 27, 2026
85d3183
chore: remove the v1 packaging, transplant pipeline and stale docs
Spectra010s Nov 27, 2026
b30c172
fix(opentui): skip the static archive on Android
Spectra010s Nov 27, 2026
8bc3515
chore: remove the unused bun embed hook and stale lock entries
Spectra010s Nov 27, 2026
099d937
chore: prune stale .gitignore paths
Spectra010s Nov 27, 2026
ad71585
docs: remove the translated READMEs
Spectra010s Nov 27, 2026
5f7be13
chore: remove unused bun.lock and root package.json
Spectra010s Nov 27, 2026
e44d2f7
chore: move the supply-chain lock to the repo root
Spectra010s Nov 27, 2026
4c76203
chore: remove the Makefile
Spectra010s Nov 27, 2026
a3399ac
refactor: merge tools/ and patches/ into scripts/
Spectra010s Nov 27, 2026
81f704a
refactor: move the FFI guard into a standalone check
Spectra010s Nov 27, 2026
e210761
fix(ci): drop stale Android Bun pin check
Spectra010s Nov 27, 2026
ce3e8b9
docs: remove the unbuilt plugin packaging design
Spectra010s Nov 27, 2026
325ce86
docs: trim the TUI highlights to five bullets
Spectra010s Nov 27, 2026
86ca387
docs: correct the OpenTUI libc++ release note
Spectra010s Nov 27, 2026
4c0bcb6
docs: rewrite the APT source runbook and drop the stale checklist
Spectra010s Nov 27, 2026
1dd8ffb
docs: move the APT repository runbook to docs/ root
Spectra010s Nov 27, 2026
9a78ee7
docs: scope plugin management to the helper that exists
Spectra010s Nov 27, 2026
11d6836
chore: remove the inherited plugin scripts and their doc
Spectra010s Nov 27, 2026
c90b6c9
docs: rewrite the native build guide as a patch record
Spectra010s Nov 27, 2026
c71a863
docs: flatten docs/ and revise every AGENTS map
Spectra010s Nov 27, 2026
b1b6454
docs: align CONTRIBUTING with the flat docs tree
Spectra010s Nov 27, 2026
06e35a9
fix(install): stamp the launcher version and default to the current tag
Spectra010s Nov 27, 2026
70a7f25
docs: note the curl installer fix in the 2.4.2 release notes
Spectra010s Nov 27, 2026
03e9038
revert: restore the installer default release tag
Spectra010s Nov 27, 2026
888947f
fix(install): use the latest release unless --version is given
Spectra010s Nov 27, 2026
59851a6
docs: note the installer latest-release default in 2.4.2 notes
Spectra010s Nov 27, 2026
3db11eb
ci: simplify build workflow wording
Spectra010s Nov 27, 2026
dc529b9
ci: remove the stale APT repair workflow
Spectra010s Nov 27, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
34 changes: 14 additions & 20 deletions .github/workflows/build-native-android.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Build locked OpenCode v2 for native Android
name: Build OpenCode v2 for native Android

on:
workflow_dispatch:
Expand All @@ -18,12 +18,12 @@ jobs:
- name: Check out workflow commit
uses: actions/checkout@d23441a48e516b6c34aea4fa41551a30e30af803 # v6.1.0

- name: Resolve pinned versions from lock
- name: Resolve versions from lock
run: |
set -euo pipefail
python3 - <<'PY' >> "$GITHUB_ENV"
import json
lock = json.load(open("tools/supply-chain-lock.json", encoding="utf-8"))
lock = json.load(open("supply-chain-lock.json", encoding="utf-8"))
version = lock["current"]
opencode = lock["opencode"][version]
opentui_version = opencode["opentui_version"]
Expand All @@ -35,7 +35,7 @@ jobs:
print(f"ZIG_VERSION={opentui['zig_version']}")
PY

- name: Fetch pinned OpenTUI source
- name: Fetch OpenTUI source
run: |
set -euo pipefail
mkdir -p work/opentui
Expand All @@ -48,43 +48,37 @@ jobs:
run: |
set -euo pipefail
URL="https://ziglang.org/download/$ZIG_VERSION/zig-x86_64-linux-$ZIG_VERSION.tar.xz"
SHA="$(python3 -c 'import json,os; print(json.load(open("tools/supply-chain-lock.json"))["opentui"][os.environ["OPENTUI_VERSION"]]["zig_x86_64_linux_sha256"])')"
SHA="$(python3 -c 'import json,os; print(json.load(open("supply-chain-lock.json"))["opentui"][os.environ["OPENTUI_VERSION"]]["zig_x86_64_linux_sha256"])')"
mkdir -p work
curl -fsSLo work/zig.tar.xz "$URL"
echo "$SHA work/zig.tar.xz" | sha256sum -c -
tar -xJf work/zig.tar.xz -C work
echo "$GITHUB_WORKSPACE/work/zig-x86_64-linux-$ZIG_VERSION" >> "$GITHUB_PATH"

- name: Verify locked metadata
- name: Verify metadata
run: |
set -euo pipefail
python3 - <<'PY'
import json
import os
import subprocess

lock = json.load(open("tools/supply-chain-lock.json", encoding="utf-8"))
bind = json.load(open("tools/transplant/config/bun-bind.json", encoding="utf-8"))
oc = lock["opencode"][os.environ["OPENCODE_VERSION"]]
lock = json.load(open("supply-chain-lock.json", encoding="utf-8"))
lock["opencode"][os.environ["OPENCODE_VERSION"]]
ot = lock["opentui"][os.environ["OPENTUI_VERSION"]]
bun_version = oc["bun_version"]
bun = lock["android_bun"][bun_version]
assert ot["commit"] == os.environ["OPENTUI_COMMIT"]
assert ot["zig_version"] == os.environ["ZIG_VERSION"]
head = subprocess.check_output(
["git", "-C", "work/opentui", "rev-parse", "HEAD"], text=True
).strip()
assert head == ot["commit"], (head, ot["commit"])
assert bind["target"] == bun_version, (bind["target"], bun_version)
assert bind["archive_sha256"] == bun["archive_sha256"]
assert bind["elf_sha256"] == bun["elf_sha256"]
PY
test "$(zig version)" = "$ZIG_VERSION"

- name: Apply OpenTUI Android hardening
run: |
set -euo pipefail
python3 tools/patch-opentui-android.py work/opentui
python3 scripts/patch-opentui-android.py work/opentui
git -C work/opentui diff --check

- name: Build Bionic OpenTUI library
Expand Down Expand Up @@ -130,8 +124,8 @@ jobs:
)
SO="work/opentui/packages/native/lib/aarch64-linux-android.28/libopentui.so"
test -f "$SO"
python3 tools/remap-binary-prefix.py "$SO" "$GITHUB_WORKSPACE" /usr/src
# Keep this lib unstripped: the guard gate scans local guard-owner
python3 scripts/remap-binary-prefix.py "$SO" "$GITHUB_WORKSPACE" /usr/src
# Keep this lib unstripped: the guard gate scans guard-owner
# symbols, and llvm-strip --strip-unneeded deletes them. The
# transplant swap verifies the unstripped build, then strips to fit
# the embedded slot.
Expand All @@ -152,7 +146,7 @@ jobs:
echo "glibc-only pthread_tryjoin_np import found in Bionic library" >&2
exit 1
fi
python3 -c 'import sys; sys.path.insert(0,"tools/transplant"); from swap_tui import has_ffi_guard; assert has_ffi_guard(open(sys.argv[1],"rb").read())' "$SO"
python3 scripts/opentui/check-ffi-guard.py "$SO"
if grep -aFq "$GITHUB_WORKSPACE" "$SO"; then
echo "build workspace path leaked into library" >&2
exit 1
Expand All @@ -174,8 +168,8 @@ jobs:
bash scripts/ci/package-release-bundle.sh \
"artifacts/bundle/$OPENCODE_VERSION" "$OPENCODE_VERSION" dist "$OPENCODE_REVISION"
cp "artifacts/bundle/$OPENCODE_VERSION/report.json" dist/report.json
cp tools/supply-chain-lock.json dist/supply-chain-lock.json
python3 tools/gen-packages-index.py dist/Packages.gz dist
cp supply-chain-lock.json dist/supply-chain-lock.json
python3 scripts/gen-packages-index.py dist/Packages.gz dist
gzip -dc dist/Packages.gz | grep -q '^Package: opencode$'
python3 scripts/ci/write-flat-apt-release.py dist
(cd dist && sha256sum * > SHA256SUMS)
Expand Down
151 changes: 0 additions & 151 deletions .github/workflows/build-pure-android.yml

This file was deleted.

8 changes: 4 additions & 4 deletions .github/workflows/publish-native-android.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,10 @@ jobs:
run: |
set -euo pipefail
{
printf 'VERSION=%s\n' "$(python3 tools/ocver.py current)"
printf 'REVISION=%s\n' "$(python3 tools/ocver.py revision)"
printf 'RELEASE_TAG=%s\n' "$(python3 tools/ocver.py tag)"
printf 'CANDIDATE=opencode-%s-android-aarch64-candidate\n' "$(python3 tools/ocver.py current)"
printf 'VERSION=%s\n' "$(python3 scripts/ocver.py current)"
printf 'REVISION=%s\n' "$(python3 scripts/ocver.py revision)"
printf 'RELEASE_TAG=%s\n' "$(python3 scripts/ocver.py tag)"
printf 'CANDIDATE=opencode-%s-android-aarch64-candidate\n' "$(python3 scripts/ocver.py current)"
} >> "$GITHUB_ENV"

- name: Check the release contract
Expand Down
86 changes: 0 additions & 86 deletions .github/workflows/sign-existing-apt-release.yml

This file was deleted.

Loading
Loading