Skip to content

Commit 2499eae

Browse files
committed
Final fixes for grpc-tools build for real this time
1 parent 027d01a commit 2499eae

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/grpc-tools/build_binaries.ps1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ $ProtobufBase = $Base + "/deps/protobuf"
1919
MkDir-p ($Base + "/build/bin")
2020

2121
$PackageFile = $Base + "/package.json"
22-
$ToolsVersion = (Get-Content $PackageFile) -join "`n" | ConvertFrom-Json | Get-Member -Name version
22+
$ToolsVersion = ((Get-Content $PackageFile) -join "`n" | ConvertFrom-Json).version
2323

2424
$OutDir = $Env:ARTIFACTS_OUT + "/grpc-tools/v" + $ToolsVersion
2525
Mkdir-p $OutDir
@@ -46,7 +46,7 @@ foreach ($Arch in $ArchList) {
4646
Copy-Item ($Base + "/Debug/grpc_node_plugin.exe") -Destination ($Base + "/build/bin/grpc_node_plugin.exe")
4747

4848
Compress-7Zip -Path ($Base + "/build") -Format Tar -ArchiveFileName ($Base + "/Archive.tar")
49-
Compress-7Zip -Path ($Base + "/Archive.tar") -Format GZip -ArchiveFileName ($OutDir + "/windows-x64.tar.gz")
49+
Compress-7Zip -Path ($Base + "/Archive.tar") -Format GZip -ArchiveFileName ($OutDir + "/windows-" + $Arch + ".tar.gz")
5050

5151
Remove-Item ($Base + "/build/bin/protoc.exe")
5252
Remove-Item ($Base + "/build/bin/grpc_node_plugin.exe")

0 commit comments

Comments
 (0)