Null-DRM-Official/apps/proxy/device/build.sh
404errordeveloper 2fa8f2435f Initial commit: Null DRM Official
Capture, decrypt, and restream toolkit with compiled-in app modules
(RTE, TG4, BBC), on-device MITM proxy, streamd control plane, and www.
BBC module.yaml is published (clear streams); other module values stay local.
2026-10-06 00:25:35 +02:00

17 lines
486 B
Bash

#!/usr/bin/env bash
set -euo pipefail
cd "$(dirname "$0")"
GO="${GO:-$(command -v go || true)}"
if [[ -z "$GO" && -x /opt/homebrew/bin/go ]]; then
GO=/opt/homebrew/bin/go
fi
if [[ -z "$GO" ]]; then
echo "go not found; brew install go" >&2
exit 1
fi
echo "building linux/arm64 with $GO"
OUT="${OUT:-../proxy-android-arm64}"
GOOS=linux GOARCH=arm64 CGO_ENABLED=0 "$GO" build -ldflags='-s -w' -o "$OUT" .
file "$OUT"
ls -lh "$OUT"
# Prefer: from repo root → bin/proxyctl.exe build