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