From cc698760dc709a6b8b5475958f4287543193ebf8 Mon Sep 17 00:00:00 2001 From: Jingwen Owen Ou Date: Thu, 7 Nov 2013 11:47:02 -0800 Subject: [PATCH] Get build going for Windows with gotask --- .goxc.json | 2 +- darwin.goxc.json | 2 +- gh_task.go | 6 +++--- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.goxc.json b/.goxc.json index 2148bcf1..1fdae06c 100644 --- a/.goxc.json +++ b/.goxc.json @@ -1,5 +1,5 @@ { - "FormatVersion": "0.8", + "FormatVersion": "0.9", "ArtifactsDest": "target", "Arch": "386,amd64", "Os": "darwin,linux,windows", diff --git a/darwin.goxc.json b/darwin.goxc.json index 40039cf2..f3fd7967 100644 --- a/darwin.goxc.json +++ b/darwin.goxc.json @@ -1,5 +1,5 @@ { - "FormatVersion": "0.8", + "FormatVersion": "0.9", "BuildConstraints": "darwin", "Resources": { "Include": "INSTALL*,README*,LICENSE*,etc/gh.*", diff --git a/gh_task.go b/gh_task.go index 5ff61b36..2d464c47 100644 --- a/gh_task.go +++ b/gh_task.go @@ -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) -- GitLab