提交 cc698760 编写于 作者: J Jingwen Owen Ou

Get build going for Windows with gotask

上级 21658b9a
{
"FormatVersion": "0.8",
"FormatVersion": "0.9",
"ArtifactsDest": "target",
"Arch": "386,amd64",
"Os": "darwin,linux,windows",
......
{
"FormatVersion": "0.8",
"FormatVersion": "0.9",
"BuildConstraints": "darwin",
"Resources": {
"Include": "INSTALL*,README*,LICENSE*,etc/gh.*",
......
......@@ -20,8 +20,8 @@ func TaskCrossCompileAll(t *tasking.T) {
return
}
// for darwin
t.Log("Compiling for darwin...")
// for current
t.Logf("Compiling for %s...\n", runtime.GOOS)
TaskCrossCompile(t)
if t.Failed() {
return
......@@ -47,7 +47,7 @@ func TaskCrossCompile(t *tasking.T) {
return
}
t.Log("Cross-compiling gh for mac...")
t.Logf("Cross-compiling gh for %s...\n", runtime.GOOS)
err = t.Exec("goxc", "-wd=.", "-os="+runtime.GOOS, "-c="+runtime.GOOS)
if err != nil {
t.Errorf("Can't cross-compile gh: %s\n", err)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册