move the variables set during the building process into the core package

This commit is contained in:
MaysWind
2026-02-15 01:12:48 +08:00
parent 76d1d3aef3
commit 3a66a3d655
10 changed files with 33 additions and 35 deletions
+4 -4
View File
@@ -10,7 +10,7 @@ import (
"github.com/urfave/cli/v3"
"github.com/mayswind/ezbookkeeping/cmd"
"github.com/mayswind/ezbookkeeping/pkg/settings"
"github.com/mayswind/ezbookkeeping/pkg/core"
"github.com/mayswind/ezbookkeeping/pkg/utils"
)
@@ -26,9 +26,9 @@ var (
)
func main() {
settings.Version = Version
settings.CommitHash = CommitHash
settings.BuildTime = BuildUnixTime
core.Version = Version
core.CommitHash = CommitHash
core.BuildTime = BuildUnixTime
cmd := &cli.Command{
Name: "ezBookkeeping",