diff --git a/README.md b/README.md index 0409087..c6acb52 100644 --- a/README.md +++ b/README.md @@ -114,7 +114,7 @@ Project file `bali.toml`: ```toml # https://toml.io/en/ name = "bali" -version = "1.2.2" +version = "1.2.3" dirs = [ "cmd/bali", # dirs ] @@ -173,7 +173,7 @@ Program build file `balisrc.toml`: name = "bali" description = "Bali - Minimalist Golang build and packaging tool" destination = "bin" -version = "1.2.2" +version = "1.2.3" versioninfo = "res/versioninfo.json" icon = "res/bali.ico" manifest = "res/bali.manifest" diff --git a/README.zh-CN.md b/README.zh-CN.md index 01b92d3..d2a128c 100644 --- a/README.zh-CN.md +++ b/README.zh-CN.md @@ -106,7 +106,7 @@ Bali 同时支持 TOML 或者 JSON 格式的项目文件,JSON 使用内置解 ```toml # https://toml.io/en/ name = "bali" -version = "1.2.2" +version = "1.2.3" dirs = [ "cmd/bali", # dirs ] @@ -155,7 +155,7 @@ norename = true name = "bali" description = "Bali - Minimalist Golang build and packaging tool" destination = "bin" -version = "1.2.2" +version = "1.2.3" versioninfo = "res/versioninfo.json" icon = "res/bali.ico" manifest = "res/bali.manifest" diff --git a/bali.json b/bali.json index 7f2be80..8fb6d79 100644 --- a/bali.json +++ b/bali.json @@ -1,6 +1,6 @@ { "name": "bali", - "version": "1.2.2", + "version": "1.2.3", "files": [ { "path": "LICENSE", diff --git a/bali.toml b/bali.toml index 19764fc..7c2201f 100644 --- a/bali.toml +++ b/bali.toml @@ -1,6 +1,6 @@ # https://toml.io/en/ name = "bali" -version = "1.2.2" +version = "1.2.3" dirs = [ "cmd/bali", # dirs ] diff --git a/cmd/bali/balisrc.json b/cmd/bali/balisrc.json index 9414b23..7198a58 100644 --- a/cmd/bali/balisrc.json +++ b/cmd/bali/balisrc.json @@ -2,7 +2,7 @@ "name": "bali", "description": "Bali - Minimalist Golang build and packaging tool", "destination": "bin", - "version": "1.2.2", + "version": "1.2.3", "links": [ "bin/baligo" ], diff --git a/cmd/bali/balisrc.toml b/cmd/bali/balisrc.toml index 0e99b80..b646fc2 100644 --- a/cmd/bali/balisrc.toml +++ b/cmd/bali/balisrc.toml @@ -1,7 +1,7 @@ name = "bali" description = "Bali - Minimalist Golang build and packaging tool" destination = "bin" -version = "1.2.2" +version = "1.2.3" versioninfo = "res/versioninfo.json" icon = "res/bali.ico" manifest = "res/bali.manifest" diff --git a/cmd/bali/executor.go b/cmd/bali/executor.go index a1f0cec..9cdde1e 100644 --- a/cmd/bali/executor.go +++ b/cmd/bali/executor.go @@ -54,7 +54,7 @@ func resolveReference(cwd string) string { cmd := exec.Command("git", "symbolic-ref", "HEAD") cmd.Dir = cwd if out, err := cmd.CombinedOutput(); err == nil { - ref := string(out) + ref := strings.TrimSpace(string(out)) DbgPrint("BUILD_REFNAME: '%s'", ref) return ref }