Null-DRM-Official/docs/release.md
404errordeveloper c1948a1439
All checks were successful
release / build-and-upload (push) Successful in 16m53s
fixed issues with CA now generates its own new cert
2026-10-08 20:16:08 +02:00

1.8 KiB

Multi-platform releases

Host CLI (drm) and the on-device MITM (proxy-android-arm64) are plain Go binaries (CGO_ENABLED=0), so one machine can cross-compile every target.

Local build

./scripts/build-release.sh v1.2.3

Windows:

.\scripts\build-release.ps1 -Version v1.2.3

Writes dist/release/:

File Use
drm-windows-amd64.exe Windows x86_64 host
drm-windows-arm64.exe Windows ARM64 host
drm-linux-amd64 Linux x86_64 host
drm-linux-arm64 Linux ARM64 host
drm-darwin-amd64 macOS Intel
drm-darwin-arm64 macOS Apple Silicon
proxy-android-arm64 Phone MITM (drm proxy push / transparent)
SHA256SUMS.txt SHA-256 of the above

Releases do not ship a MITM private key. On each machine, the first drm proxy install-ca --reinject creates data/proxy-ca.crt + data/proxy-ca.key (unique per install). Users must not copy data/ between PCs if they want separate CAs.

Copy the matching host binary to bin/drm / bin/drm.exe (the scripts already do this for the current OS) and keep proxy-android-arm64 next to it under bin/.

Forgejo (git.nulldrm.com)

Push a version tag; Actions builds and attaches the same files to the release:

git tag v1.2.3
git push origin v1.2.3

Workflow: .forgejo/workflows/release.yml. Runner setup: deploy/forgejo/README.md § Actions / releases.

Manual one-off cross-compile

GOOS=windows GOARCH=amd64 CGO_ENABLED=0 go -C apps/cli build -o bin/drm.exe .
GOOS=darwin  GOARCH=arm64 CGO_ENABLED=0 go -C apps/cli build -o bin/drm-darwin-arm64 .
GOOS=linux   GOARCH=amd64 CGO_ENABLED=0 go -C apps/cli build -o bin/drm-linux-amd64 .
GOOS=linux   GOARCH=arm64 CGO_ENABLED=0 go -C apps/proxy/device build -o bin/proxy-android-arm64 .