Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion rustup.install.nuspec
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<package xmlns="http://schemas.microsoft.com/packaging/2015/06/nuspec.xsd">
<metadata>
<id>rustup.install</id>
<version>1.22.1</version>
<version>1.23.0</version>
<packageSourceUrl>https://github.com/camilohe/rustup.install</packageSourceUrl>
<owners>camilohe</owners>

Expand Down
17 changes: 12 additions & 5 deletions tools/chocolateyinstall.ps1
Original file line number Diff line number Diff line change
@@ -1,8 +1,15 @@
$ErrorActionPreference = 'Stop';

$version = '1.23.0'

$triple_x86 = 'i686-pc-windows-msvc'
$triple_x64 = 'x86_64-pc-windows-msvc'
$toolsDir = "$(Split-Path -parent $MyInvocation.MyCommand.Definition)"
$url = 'https://win.rustup.rs/i686'
$url64 = 'https://win.rustup.rs/x86_64'
# e.g. https://static.rust-lang.org/rustup/archive/1.23.0/i686-pc-windows-msvc/rustup-init.exe
$url = "https://static.rust-lang.org/rustup/archive/$version/$triple_x86/rustup-init.exe"
# e.g. https://static.rust-lang.org/rustup/archive/1.23.0/x86_64-pc-windows-msvc/rustup-init.exe
$url64 = "https://static.rust-lang.org/rustup/archive/$version/$triple_x64/rustup-init.exe"


$packageArgs = @{
packageName = $env:ChocolateyPackageName
Expand All @@ -11,11 +18,11 @@ $packageArgs = @{
url = $url
url64bit = $url64

softwareName = 'rustup*'
softwareName = 'rustup-init.exe'

checksum = 'A607258DE36F4369552426A5025329B8859C4FB3CC4A29C14C865ABF3BBDBAC0'
checksum = '48E2BEA0BF6B9C782C8732E8DE17A3D87B5760AF8931E801652F8A47B27018CC'
checksumType = 'sha256'
checksum64 = '7D84713F40E835B2D4B6FF6A3044338598B5D2D4E3B0716277450776AE3D7089'
checksum64 = '655388940708EE094FCAD294B00AF05B8B81C0AB7F8DA67CD31224BD41F5F33B'
checksumType64 = 'sha256'

silentArgs = '-v -y' # it seems we need '-v -y' starting with 1.9.0 to get rustup copied to the .cargo\bin folder.
Expand Down