fix(Win_install): 尝试修复 Windows 安装脚本的一些错误行为 - #36
Merged
Conversation
1. 尝试修复不等待 Rust 初始化完成就执行接下来的操作导致 Cargo 命令执行失败的问题; 2. 尝试使用 TUNA 镜像站的稀疏索引以加快首次更新索引的速度。
原先使用的方法仅在现代化终端上有效,使用更通用的命令以使得传统终端也可绕过限制。
在全新环境下,Rust 编译时可能出错,增加提示。
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
已修改
修正 Windows 安装脚本使用完整 crates.io 仓库、不等待 Rust 初始化完成就继续以及不能正确提供绕过运行限制策略的问题。
修改方法
验证
更正后脚本安装执行的屏幕录制
原视频时长9分钟,受限于 GitHub 附件大小限制,已对视频做压缩加速处理。验证环境为全新 Windows 10 LTSC 2021,仅安装了 Git For Windows 和 Visual Studio 2026 (C++ 桌面开发必要工具链)。2026-05-07.12-37-12_1.mp4
安全更新?
不是。该更改不具有任何安全性更改。
破坏性更改?
不是。该更改不具有任何破坏性更改,应该可以安全切换到新的特性版本。