Skip to content

Commit

Permalink
fix: check for protoc stable version only (#1592)
Browse files Browse the repository at this point in the history
  • Loading branch information
drelatgithub authored Dec 3, 2020
1 parent 5e8dc4e commit 2b79f9b
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 8 deletions.
2 changes: 1 addition & 1 deletion automatic/protoc/protoc.nuspec
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<metadata>
<!-- IconUrl: Skip check -->
<id>protoc</id>
<version>4.0.0-rc-2</version>
<version>0.0.0</version>
<title>Protocol Buffers</title>
<authors>Google</authors>
<owners>chocolatey-community, keen, jordigg, drel</owners>
Expand Down
3 changes: 0 additions & 3 deletions automatic/protoc/tools/chocolateyBeforeModify.ps1

This file was deleted.

2 changes: 0 additions & 2 deletions automatic/protoc/tools/chocolateyinstall.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,3 @@ $packageArgs = @{
}
Get-ChocolateyUnzip @packageArgs
Remove-Item $toolsPath\*.zip -ea 0

Install-BinFile 'protoc' "$toolsPath\bin\protoc.exe"
4 changes: 2 additions & 2 deletions automatic/protoc/update.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ function global:au_GetLatest {


$download_page = Invoke-WebRequest -Uri "$releases" -UseBasicParsing
$url32 = $download_page.links | ? href -match '/protoc-(.+)-win32\.zip$' | % href | select -First 1
$url64 = $download_page.links | ? href -match '/protoc-(.+)-win64\.zip$' | % href | select -First 1
$url32 = $download_page.links | ? href -match '/protoc-(\d+\.\d+\.\d+)-win32\.zip$' | % href | select -First 1
$url64 = $download_page.links | ? href -match '/protoc-(\d+\.\d+\.\d+)-win64\.zip$' | % href | select -First 1

$version = $Matches[1]

Expand Down

0 comments on commit 2b79f9b

Please sign in to comment.