voidint/gbb

生成含丰富版本信息的可执行文件的功能作为可选功能出现

Closed this issue · 0 comments

{
    "version": "0.0.1",
    "tool": "gb build",
    "package": "build",
    "variables": [
        {
            "variable": "Date",
            "value": "{{.date}}"
        },
        {
            "variable": "Commit",
            "value": "{{.gitCommit}}"
        }
    ]
}

以上gbb.json中的packagevariables作为可选配置项,若没有这两项内容,那么gbb就是一个单纯的辅助编译工具。

gbb具有一键编译项目目录下所有入口程序的能力,如果手工执行go build/install去编译issue#4中所提到的这类项目,那会有多么繁琐。