瀏覽代碼

rustup: Set version

Jérôme Leclercq 3 月之前
父節點
當前提交
ceecb5d156
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      packages/r/rustup/xmake.lua

+ 1 - 1
packages/r/rustup/xmake.lua

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