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.
18 lines
583 B
PowerShell
18 lines
583 B
PowerShell
|
|
# NOTE: The following commands assumes you have Git For Windows
|
|
# installed, which comes with a bunch of GNU tools packaged for windows:
|
|
Set-Variable -Name GIT_COMMIT -Value "$(git rev-list -1 HEAD)"
|
|
Set-Variable -Name CANONICAL_VERSION -Value "$(cat.exe ./VERSION)-$(uname)"
|
|
Set-Variable -Name VERSION_STRING -Value "$CANONICAL_VERSION-$GIT_COMMIT"
|
|
|
|
Set-Variable -Name buildpath -Value "build/$(uname)/gostations.exe"
|
|
|
|
go mod tidy
|
|
|
|
go build -o "$buildpath" -ldflags "-X main.version=$VERSION_STRING"
|
|
|
|
& $buildpath -v
|
|
|
|
Copy-Item $buildpath $HOME/.local/bin -Force
|
|
|