|
@@ -33,7 +33,7 @@ package("rustup")
|
|
|
on_install("@windows|x86", "@windows|x64", "@windows|arm64", "@msys", "@cygwin", "@bsd", "@linux", "@macosx", function (package)
|
|
|
local installdir = package:installdir()
|
|
|
local argv = {"--no-modify-path", "--profile=minimal", "--default-toolchain=none", "-y"}
|
|
|
- local envs = {CARGO_HOME = path.join(installdir, ".cargo"), RUSTUP_HOME = path.join(installdir, ".rustup"), RUSTUP_INIT_SKIP_PATH_CHECK = "yes"}
|
|
|
+ local envs = {CARGO_HOME = path.join(installdir, ".cargo"), RUSTUP_HOME = path.join(installdir, ".rustup"), RUSTUP_INIT_SKIP_PATH_CHECK = "yes", RUSTUP_VERSION = package:version():shortstr()}
|
|
|
os.vrunv(package:originfile(), argv, {envs = envs, shell = not is_host("windows")})
|
|
|
package:addenv("PATH", path.join(".cargo", "bin"))
|
|
|
package:setenv("CARGO_HOME", ".cargo")
|