windows romt构建rustup本地镜像

Wednesday, Oct 9, 2024 | 1 minute read | Updated at Wednesday, Oct 9, 2024

@
windows romt构建rustup本地镜像

基于外部工具romt实现的,不过最终也没成功。。。。。

# 下载toolchain
e:\romt-0.4.0-x86_64-windows.exe toolchain -v -s stable -t x86_64-pc-windows-gnu --url https://mirror.nju.edu.cn/rustup/dist --no-signature download

#下载rustup
# nju镜像路径不同,ustc镜像一样的
e:\romt-0.4.0-x86_64-windows.exe toolchain -v -s stable -t x86_64-pc-windows-gnu --url https://mirror.nju.edu.cn/rustup/rustup --no-signature download
# rustup缺少校验文件,直接下载后放对应目录

# create mirror
# 不使用镜像速度比较慢
e:\romt-0.4.0-x86_64-windows.exe crate init --index-url https://mirror.nju.edu.cn/git/crates.io-index.git

#同步
e:\romt-0.4.0-x86_64-windows.exe crate -v --keep-going --index-url https://mirror.nju.edu.cn/git/crates.io-index.git update 


E:\mirror>e:\romt-0.4.0-x86_64-windows.exe crate -v --keep-going --index-url https://mirror.nju.edu.cn/git/crates.io-index.git --crates-url https://mirror.nju.edu.cn/git/crates.io-index.git/ --assume-ok --bundle-path=e:\mirror\crates.tar.gz
# 打包
# rustup缺少256文件,powershell执行
Get-FileHash -Algorithm SHA256 -Path .\rustup-init.exe|out-file -Encoding ASCII .\rustup-init.exe.sha256

romt rustup -v -s stable -t x86_64-pc-windows-gnu --assume-ok pack


# toolchains缺少asc文件,直接no-signature
romt toolchain -v -s stable -t x86_64-pc-windows-gnu --no-signature pack
```

© 2016 - 2025 Caisong's Blog

🌱 Powered by Hugo with theme Dream.

About Me

大龄程序员,喜欢折腾各种环境部署、软件应用。

博客记录日常。