Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
voidint opened this issue Dec 24, 2016 · 0 comments

Comments

@voidint
Copy link
Owner

voidint commented Dec 24, 2016

{
    "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中所提到的这类项目,那会有多么繁琐。

voidint added a commit that referenced this issue Dec 30, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant