Commit 6c79cfdf authored by suyanlong's avatar suyanlong Committed by vipwzw

[[FIX]] Fixed semantic-release-replace-plugin config

parent f66b09c7
...@@ -31,8 +31,7 @@ ...@@ -31,8 +31,7 @@
"countMatches": true "countMatches": true
}, },
{ {
{ "files": ["README.md"],
"files": [ "README.md" ],
"from": "# chain33 官方插件系统(.*)", "from": "# chain33 官方插件系统(.*)",
"to": "# chain33 官方插件系统(v${nextRelease.version})", "to": "# chain33 官方插件系统(v${nextRelease.version})",
"results": [ "results": [
...@@ -45,7 +44,6 @@ ...@@ -45,7 +44,6 @@
], ],
"countMatches": true "countMatches": true
}, },
}
] ]
} }
], ],
......
...@@ -29,7 +29,9 @@ var ( ...@@ -29,7 +29,9 @@ var (
func main() { func main() {
flag.Parse() flag.Parse()
if *versionCmd { if *versionCmd {
fmt.Println(fmt.Sprintf("build time: %s", version.BuildTime)) fmt.Println(fmt.Sprintf("Build time: %s", version.BuildTime))
fmt.Println(fmt.Sprintf("System version: %s", version.Platform))
fmt.Println(fmt.Sprintf("Golang version: %s", version.GoVersion))
fmt.Println(fmt.Sprintf("plugin version: %s", version.GetVersion())) fmt.Println(fmt.Sprintf("plugin version: %s", version.GetVersion()))
fmt.Println(fmt.Sprintf("chain33 frame version: %s", frameVersion.GetVersion())) fmt.Println(fmt.Sprintf("chain33 frame version: %s", frameVersion.GetVersion()))
return return
......
package version package version
import (
"fmt"
"runtime"
)
//var version control //var version control
var ( var (
Version = "master" Version = "1.65.3"
GitCommit string GitCommit string
BuildTime string BuildTime string
// GoVersion system go version
GoVersion = runtime.Version()
// Platform info
Platform = fmt.Sprintf("%s/%s", runtime.GOOS, runtime.GOARCH)
) )
//GetVersion 获取版本信息 //GetVersion 获取版本信息
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment