Some checks failed
gobuild / build (push) Failing after 4s
Move browser, config, player, and radio logic into internal/{config,radio,player,ui,version}.
Add cached API host resolution, context-aware HTTP client, and nil/length guards to eliminate
RandomIP, nslookup, reverseLookup, and GetStations panics. Replace subExecute with clean
legacyPlayer using Run-only execution. Fix inverted -short test guards, unformatted config
error messages, and "Erorr" typo. Remove obsolete vendor/GOPATH logic from build scripts.
Update callers in stations.go and radiomenu.go to new paths; retain shims for transition.
19 lines
379 B
Bash
Executable File
19 lines
379 B
Bash
Executable File
#!/usr/bin/env sh
|
|
|
|
GIT_COMMIT=$(git rev-list -1 HEAD)
|
|
export GIT_COMMIT
|
|
CANONICAL_VERSION=$(cat ./VERSION)-$(uname)
|
|
export CANONICAL_VERSION
|
|
VERSION_STRING="$CANONICAL_VERSION-$GIT_COMMIT"
|
|
export VERSION_STRING
|
|
|
|
buildpath="build/$(uname)/gostations"
|
|
|
|
go mod tidy
|
|
|
|
go build -o "$buildpath" -ldflags "-X main.version=$VERSION_STRING"
|
|
|
|
"$buildpath" -v
|
|
|
|
cp "$buildpath" ~/.local/bin
|