Change how artifacts directory path is written, remove debug output

This commit is contained in:
Michael Lumish 2020-05-14 13:21:34 -07:00
parent de5063d4b1
commit 2677d8773c
1 changed files with 4 additions and 5 deletions

View File

@ -14,10 +14,6 @@
limitations under the License.
#>
Set-PSDebug -trace 2
Write-Host "Hello World"
$ErrorActionPreference = "Stop"
<# https://stackoverflow.com/questions/16657778/install-nuget-via-powershell-script/26421187#comment107976901_48216538 #>
@ -45,9 +41,12 @@ MkDir-p ($Base + "/build/bin")
$PackageFile = $Base + "/package.json"
$ToolsVersion = ((Get-Content $PackageFile) -join "`n" | ConvertFrom-Json).version
$OutDir = $Base + "/../../artifacts/grpc-tools/v" + $ToolsVersion
cd ../..
$OutDir = $pwd + "/artifacts/grpc-tools/v" + $ToolsVersion
Mkdir-p $OutDir
cd $Base
$ArchList = "ia32","x64"
foreach ($Arch in $ArchList) {