update readme and build
This commit is contained in:
@@ -5,15 +5,18 @@ This file provides guidance to Claude Code (claude.ai/code) when working with co
|
||||
## Commands
|
||||
|
||||
```bash
|
||||
# Build
|
||||
go build .
|
||||
# Build (static — no glibc dep, runs on NixOS / Alpine / any Linux)
|
||||
CGO_ENABLED=0 go build .
|
||||
|
||||
# Build with injected encryption key (production)
|
||||
go build -ldflags "-X gotermix/internals.fileEncKeyHex=$(openssl rand -hex 32)" .
|
||||
CGO_ENABLED=0 go build -ldflags "-X gotermix/internals.fileEncKeyHex=$(openssl rand -hex 32)" .
|
||||
|
||||
# Build with env-var key
|
||||
export GOTERMINAL_ENC="your64hexchars"
|
||||
go build -ldflags "-X gotermix/internals.fileEncKeyHex=${GOTERMINAL_ENC}" .
|
||||
CGO_ENABLED=0 go build -ldflags "-X gotermix/internals.fileEncKeyHex=${GOTERMINAL_ENC}" .
|
||||
|
||||
# Cross-compile for Linux amd64 from any OS
|
||||
CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build .
|
||||
|
||||
# Run (dev)
|
||||
./gotermix
|
||||
|
||||
Reference in New Issue
Block a user