From 84c8eb8e393a7608e6bbc110eb9c2ef1c7ce40cc Mon Sep 17 00:00:00 2001 From: Dominik Dary Date: Fri, 13 Sep 2019 19:13:05 +0200 Subject: [PATCH] using native golang build. --- packages/dcos-diagnostics/windows.build.ps1 | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/dcos-diagnostics/windows.build.ps1 b/packages/dcos-diagnostics/windows.build.ps1 index 5cc4523d96..9eaa8b032f 100644 --- a/packages/dcos-diagnostics/windows.build.ps1 +++ b/packages/dcos-diagnostics/windows.build.ps1 @@ -5,7 +5,9 @@ copy-item -recurse -Path c:/pkg/src/dcos-diagnostics/ -Destination c:/gopath/sr Push-Location $SRC_DIR -& make install +& GOOS=windows go build . new-item -itemtype directory "$env:PKG_PATH/bin" +Copy-Item -Path "$SRC_DIR/dcos-diagnostics.exe" -Destination "$env:PKG_PATH/bin/dcos-diagnostics.exe" + Pop-Location