Skip to content

Commit 94a6951

Browse files
committed
feat: 整合重构安装脚本
- 重构了安装脚本 - 将安装脚本统一移动到 tools 目录 - 更新 README 文档 - 支持中/英双语 - Linux/MacOS 统一使用虚拟环境 RT-Thread#257 RT-Thread#269 - 可能自定义安装目录(默认: ~/.rt-env) RT-Thread#230 - 根据 IP,决定是否使用国内镜像(软件/仓库/PyPI) - 多平台共用的操作由 touch_env.py 统一处理,方便维护 - Linux / MacOS 整合为一个安装文件 install.sh - 可选是否安装 pyocd - 对已经安装 ENV, 可选择多种保留策略(主要是因工具链下载时间太长了) - 激活后显示欢迎词 - 可设定 env、package 、sdk 仓库的地址及分支,方便测试这些仓库的更改 - Windows 安装脚本: - 设置 ps 脚本的执行策略 - 自动搜索系统中的 Python - 或自动下载并安装便携式 Python - 为 Python 设置长路径支持 - 自动下载安装 Git 最新版 - 使用了 AI 辅助 已测试平台: - Windows 11: Windows PowerShell 5.1 - Windows 11: PowerShell 7.5 - Windows WSL2: Ubuntu 24.04.3 LTS
1 parent 3a2f4a3 commit 94a6951

19 files changed

Lines changed: 5938 additions & 503 deletions

.gitattributes

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,4 +29,5 @@
2929
*.md text eol=crlf
3030

3131
*.bat text eol=crlf
32-
*.ps1 text eol=crlf
32+
*.ps1 text eol=crlf encoding=UTF-8-BOM
33+
*.sh text eol=lf

0 commit comments

Comments
 (0)