mirror of
				https://github.com/ScoopInstaller/Main.git
				synced 2025-11-03 23:31:20 +00:00 
			
		
		
		
	* the host should be set to gnu compared to rustup-msvc, we should ensure the host to be `gnu` with this. * fix for 32bit user fix for 32bit user * Update rustup.json * clear pre-install move into install * also set for rustup-msvc * Update rustup.json * Apply suggestions from code review Co-authored-by: Rashil Gandhi <46838874+rashil2000@users.noreply.github.com> Co-authored-by: Rashil Gandhi <46838874+rashil2000@users.noreply.github.com>
		
			
				
	
	
		
			52 lines
		
	
	
		
			2.1 KiB
		
	
	
	
		
			JSON
		
	
	
	
	
	
			
		
		
	
	
			52 lines
		
	
	
		
			2.1 KiB
		
	
	
	
		
			JSON
		
	
	
	
	
	
{
 | 
						|
    "version": "1.24.3",
 | 
						|
    "description": "Manage multiple rust installations with ease",
 | 
						|
    "homepage": "https://rustup.rs",
 | 
						|
    "license": "MIT|Apache-2.0",
 | 
						|
    "notes": "To use the MSVC ABI without Visual Studio 2015 (or higher) installed, you will need the Visual Studio 2017 Build Tools: https://www.visualstudio.com/downloads/#build-tools-for-visual-studio-2017",
 | 
						|
    "architecture": {
 | 
						|
        "64bit": {
 | 
						|
            "url": "https://static.rust-lang.org/rustup/archive/1.24.3/x86_64-pc-windows-msvc/rustup-init.exe",
 | 
						|
            "hash": "780b445ee18bdc5a31ad6a4a63943927e5c0bba8bff664e8ecc8d5bca3906c7b"
 | 
						|
        },
 | 
						|
        "32bit": {
 | 
						|
            "url": "https://static.rust-lang.org/rustup/archive/1.24.3/i686-pc-windows-msvc/rustup-init.exe",
 | 
						|
            "hash": "33ddb81079f94150e162fa00a84a00ff4649419fce5aa54116cb4147785732d1"
 | 
						|
        }
 | 
						|
    },
 | 
						|
    "installer": {
 | 
						|
        "script": [
 | 
						|
            "[Environment]::SetEnvironmentVariable('CARGO_HOME', \"$persist_dir\\.cargo\", 'Process')",
 | 
						|
            "[Environment]::SetEnvironmentVariable('RUSTUP_HOME', \"$persist_dir\\.rustup\", 'Process')",
 | 
						|
            "$host_arch = if ($architecture -eq '64bit') {'x86_64'} else {'i686'}",
 | 
						|
            "Invoke-ExternalCommand -Path \"$dir\\rustup-init.exe\" -Args \"-y --no-modify-path --default-host $host_arch-pc-windows-msvc\" | Out-Null"
 | 
						|
        ]
 | 
						|
    },
 | 
						|
    "env_add_path": ".cargo\\bin",
 | 
						|
    "env_set": {
 | 
						|
        "CARGO_HOME": "$persist_dir\\.cargo",
 | 
						|
        "RUSTUP_HOME": "$persist_dir\\.rustup"
 | 
						|
    },
 | 
						|
    "persist": [
 | 
						|
        ".cargo",
 | 
						|
        ".rustup"
 | 
						|
    ],
 | 
						|
    "checkver": {
 | 
						|
        "url": "https://raw.githubusercontent.com/rust-lang-nursery/rustup.rs/master/Cargo.toml",
 | 
						|
        "regex": "version = \"([\\d.]+)\""
 | 
						|
    },
 | 
						|
    "autoupdate": {
 | 
						|
        "architecture": {
 | 
						|
            "64bit": {
 | 
						|
                "url": "https://static.rust-lang.org/rustup/archive/$version/x86_64-pc-windows-msvc/rustup-init.exe"
 | 
						|
            },
 | 
						|
            "32bit": {
 | 
						|
                "url": "https://static.rust-lang.org/rustup/archive/$version/i686-pc-windows-msvc/rustup-init.exe"
 | 
						|
            }
 | 
						|
        },
 | 
						|
        "hash": {
 | 
						|
            "url": "$url.sha256"
 | 
						|
        }
 | 
						|
    }
 | 
						|
}
 |