chore: take the version from VERSION.txt only (0.0.3)

VERSION.txt is embedded into the server and the agent, so a plain
go build reports the real version and build.sh no longer injects it.
This commit is contained in:
redtea committed 2026-10-13 14:50:49 +03:00
1 parent 93673d3570
commit 7cb9da8569
5 files changed
+26 -11

No files matched your search

+3 -4
View File
@@ -5,10 +5,9 @@ set -eu
cd "$(dirname "$0")"
VERSION="${VERSION:-$(cat VERSION.txt 2>/dev/null || echo 0.0.0)}"
PKG="github.com/x-grk/longpolling-remote-access"
LDFLAGS="-s -w -X $PKG/internal/server.Version=$VERSION -X $PKG/internal/agent.Version=$VERSION"
echo ">> version $VERSION"
# The version comes from VERSION.txt, which is embedded into every binary.
LDFLAGS="-s -w"
echo ">> version $(cat VERSION.txt)"
mkdir -p dist bin