From c7799cb6a64e48f77555a406ce5acfc9a1fc1189 Mon Sep 17 00:00:00 2001 From: Rian Stockbower Date: Fri, 25 Sep 2026 11:15:26 -0400 Subject: [PATCH] fix: render literal Chocolatey download URLs --- .../google-readonly/tools/chocolateyInstall.ps1 | 9 ++++----- .../google-readwrite/tools/chocolateyInstall.ps1 | 9 ++++----- 2 files changed, 8 insertions(+), 10 deletions(-) diff --git a/packaging/chocolatey/google-readonly/tools/chocolateyInstall.ps1 b/packaging/chocolatey/google-readonly/tools/chocolateyInstall.ps1 index 4676023..fb3c0cd 100644 --- a/packaging/chocolatey/google-readonly/tools/chocolateyInstall.ps1 +++ b/packaging/chocolatey/google-readonly/tools/chocolateyInstall.ps1 @@ -1,23 +1,22 @@ $ErrorActionPreference = 'Stop' -$version = $env:ChocolateyPackageVersion $toolsDir = Split-Path -Parent $MyInvocation.MyCommand.Definition +$urlAmd64 = 'URL_AMD64_PLACEHOLDER' +$urlArm64 = 'URL_ARM64_PLACEHOLDER' $checksumAmd64 = 'CHECKSUM_AMD64_PLACEHOLDER' $checksumArm64 = 'CHECKSUM_ARM64_PLACEHOLDER' if ($env:PROCESSOR_ARCHITECTURE -eq 'ARM64') { - $arch = 'arm64' + $url = $urlArm64 $checksum = $checksumArm64 } elseif ([Environment]::Is64BitOperatingSystem) { - $arch = 'amd64' + $url = $urlAmd64 $checksum = $checksumAmd64 } else { throw "32-bit Windows is not supported. gro requires 64-bit Windows." } -$url = "https://github.com/open-cli-collective/google-cli/releases/download/v${version}/gro_v${version}_windows_${arch}.zip" - Install-ChocolateyZipPackage -PackageName $env:ChocolateyPackageName ` -Url $url ` -UnzipLocation $toolsDir ` diff --git a/packaging/chocolatey/google-readwrite/tools/chocolateyInstall.ps1 b/packaging/chocolatey/google-readwrite/tools/chocolateyInstall.ps1 index a67c863..3616a36 100644 --- a/packaging/chocolatey/google-readwrite/tools/chocolateyInstall.ps1 +++ b/packaging/chocolatey/google-readwrite/tools/chocolateyInstall.ps1 @@ -1,23 +1,22 @@ $ErrorActionPreference = 'Stop' -$version = $env:ChocolateyPackageVersion $toolsDir = Split-Path -Parent $MyInvocation.MyCommand.Definition +$urlAmd64 = 'URL_AMD64_PLACEHOLDER' +$urlArm64 = 'URL_ARM64_PLACEHOLDER' $checksumAmd64 = 'CHECKSUM_AMD64_PLACEHOLDER' $checksumArm64 = 'CHECKSUM_ARM64_PLACEHOLDER' if ($env:PROCESSOR_ARCHITECTURE -eq 'ARM64') { - $arch = 'arm64' + $url = $urlArm64 $checksum = $checksumArm64 } elseif ([Environment]::Is64BitOperatingSystem) { - $arch = 'amd64' + $url = $urlAmd64 $checksum = $checksumAmd64 } else { throw "32-bit Windows is not supported. grw requires 64-bit Windows." } -$url = "https://github.com/open-cli-collective/google-cli/releases/download/v${version}/grw_v${version}_windows_${arch}.zip" - Install-ChocolateyZipPackage -PackageName $env:ChocolateyPackageName ` -Url $url ` -UnzipLocation $toolsDir `