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

+5 -3
View File
@@ -3,6 +3,8 @@ package server
import (
"crypto/rand"
"encoding/hex"
lpra "github.com/x-grk/longpolling-remote-access"
)
// Config keys stored in the config table.
@@ -18,9 +20,9 @@ const (
// the rendered install.sh and can be changed from the settings page.
const DefaultHostAddress = "https://REDACTED:8445"
// Version is the server build version, injected at compile time via -ldflags
// (-X .../internal/server.Version=...). It is the newest version agents update to.
var Version = "dev"
// Version is the server build version (see VERSION.txt). It is the newest
// version agents update to.
var Version = lpra.Version
// ensureDefaults seeds the host address and a random enroll secret on first boot.
func (db *DB) ensureDefaults() error {