feat: Inject copyright year at build time and update version handling in build script

This commit is contained in:
2026-03-04 22:58:55 -05:00
parent 80bb7d45f8
commit 306e2e52d2
2 changed files with 8 additions and 6 deletions
+3 -2
View File
@@ -14,13 +14,14 @@ import (
"ekdns/resolver"
)
// version is set at build time via -ldflags "-X main.version=..."
// version and copyrightYear are set at build time via -ldflags.
var version = "dev"
var copyrightYear = "2024"
func main() {
// Banner (always printed to stdout).
fmt.Printf("ekDNSHelper %s\n", version)
fmt.Println("Copyright (c) 2024 Emberkom LLC")
fmt.Printf("Copyright (c) %s Emberkom LLC\n", copyrightYear)
fmt.Println("")
if len(os.Args) < 2 {