Skip to content

Commit

Permalink
Merge pull request #1009 from CircleCI-Public/fix/chocolatey_build
Browse files Browse the repository at this point in the history
fix chocolatey script encoding
  • Loading branch information
abdelDriowya authored Oct 5, 2023
2 parents 695805d + 80c69d5 commit 228773e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions chocolatey/update-version.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@ Write-Verbose "getting checksum from $checksumURL to $tmpFile"
### replace hash
$hash = (Get-Content $tmpFile | where {$_ -like "*windows_amd64.zip"}).split(" ")[0]
$installerPath = ".\circleci-cli\tools\chocolateyinstall.ps1"
(Get-Content $installerPath).Replace('$HASH',$hash) | Out-File $installerPath -Force
(Get-Content $installerPath).Replace('$HASH',$hash) | Out-File $installerPath -Force -Encoding ASCII

$downloadURL = "https://github.com/CircleCI-Public/circleci-cli/releases/download/v$curVersion/circleci-cli_$($curVersion)_windows_amd64.zip"
(Get-Content $installerPath).Replace('$DOWNLOAD_URL',$downloadURL) | Out-File $installerPath -Force
(Get-Content $installerPath).Replace('$DOWNLOAD_URL',$downloadURL) | Out-File $installerPath -Force -Encoding ASCII

$nuspecPath = "./circleci-cli/circleci-cli.nuspec"
(Get-Content $nuspecPath).Replace('$VER',$curVersion) | Out-File $nuspecPath -Force
(Get-Content $nuspecPath).Replace('$VER',$curVersion) | Out-File $nuspecPath -Force -Encoding ASCII

0 comments on commit 228773e

Please sign in to comment.