feat: add native Android/Termux binary support (#887)

feat: added android support for running with termux

Adds GOOS=android arm64 build to goreleaser and platform detection in npm postinstall.

Tested by contributor on Termux where os.platform() returns 'android' and Linux binaries fail due to bionic vs glibc.
This commit is contained in:
Ariff Azman
2026-01-06 12:06:25 +08:00
committed by GitHub
parent a61cbde692
commit 2a579a539b
4 changed files with 34 additions and 13 deletions

View File

@@ -43,6 +43,22 @@ builds:
- -X main.Commit={{.Commit}}
- -X main.Branch={{.Branch}}
- id: bd-android-arm64
main: ./cmd/bd
binary: bd
env:
- CGO_ENABLED=0
goos:
- android
goarch:
- arm64
ldflags:
- -s -w
- -X main.Version={{.Version}}
- -X main.Build={{.ShortCommit}}
- -X main.Commit={{.Commit}}
- -X main.Branch={{.Branch}}
- id: bd-darwin-amd64
main: ./cmd/bd
binary: bd
@@ -184,8 +200,8 @@ release:
name_template: "v{{.Version}}"
header: |
## beads v{{.Version}}
Pre-compiled binaries for Linux, macOS (Intel & Apple Silicon), Windows (AMD64 & ARM64), and FreeBSD.
Pre-compiled binaries for Linux, macOS (Intel & Apple Silicon), Windows (AMD64 & ARM64), Android/Termux (ARM64), and FreeBSD.
### Installation