mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2026-02-06 00:45:22 +08:00
Fix Darwin detection and URL
Some checks failed
AutoTestCI / components/cpp11 (push) Has been cancelled
AutoTestCI / kernel/atomic (push) Has been cancelled
AutoTestCI / kernel/atomic/riscv64 (push) Has been cancelled
AutoTestCI / kernel/atomic_c11 (push) Has been cancelled
AutoTestCI / kernel/atomic_c11/riscv64 (push) Has been cancelled
AutoTestCI / kernel/device (push) Has been cancelled
AutoTestCI / kernel/ipc (push) Has been cancelled
AutoTestCI / kernel/irq (push) Has been cancelled
AutoTestCI / kernel/mem (push) Has been cancelled
AutoTestCI / kernel/mem/riscv64 (push) Has been cancelled
AutoTestCI / kernel/thread (push) Has been cancelled
AutoTestCI / kernel/timer (push) Has been cancelled
AutoTestCI / rtsmart/aarch64 (push) Has been cancelled
AutoTestCI / rtsmart/arm (push) Has been cancelled
AutoTestCI / rtsmart/riscv64 (push) Has been cancelled
AutoTestCI / components/utest (push) Has been cancelled
RT-Thread BSP Static Build Check / 🔍 Summary of Git Diff Changes (push) Has been cancelled
RT-Thread BSP Static Build Check / ${{ matrix.legs.RTT_BSP }} (push) Has been cancelled
RT-Thread BSP Static Build Check / collect-artifacts (push) Has been cancelled
pkgs_test / change (push) Has been cancelled
utest_auto_run / AARCH64-rtsmart :default.cfg (push) Has been cancelled
utest_auto_run / A9-rtsmart :default.cfg (push) Has been cancelled
utest_auto_run / RISCV-rtsmart :default.cfg (push) Has been cancelled
utest_auto_run / XUANTIE-rtsmart :default.cfg (push) Has been cancelled
utest_auto_run / AARCH64 :default.cfg (push) Has been cancelled
utest_auto_run / A9 :default.cfg (push) Has been cancelled
utest_auto_run / A9-smp :default.cfg (push) Has been cancelled
utest_auto_run / RISCV :default.cfg (push) Has been cancelled
ToolsCI / Tools (push) Has been cancelled
Some checks failed
AutoTestCI / components/cpp11 (push) Has been cancelled
AutoTestCI / kernel/atomic (push) Has been cancelled
AutoTestCI / kernel/atomic/riscv64 (push) Has been cancelled
AutoTestCI / kernel/atomic_c11 (push) Has been cancelled
AutoTestCI / kernel/atomic_c11/riscv64 (push) Has been cancelled
AutoTestCI / kernel/device (push) Has been cancelled
AutoTestCI / kernel/ipc (push) Has been cancelled
AutoTestCI / kernel/irq (push) Has been cancelled
AutoTestCI / kernel/mem (push) Has been cancelled
AutoTestCI / kernel/mem/riscv64 (push) Has been cancelled
AutoTestCI / kernel/thread (push) Has been cancelled
AutoTestCI / kernel/timer (push) Has been cancelled
AutoTestCI / rtsmart/aarch64 (push) Has been cancelled
AutoTestCI / rtsmart/arm (push) Has been cancelled
AutoTestCI / rtsmart/riscv64 (push) Has been cancelled
AutoTestCI / components/utest (push) Has been cancelled
RT-Thread BSP Static Build Check / 🔍 Summary of Git Diff Changes (push) Has been cancelled
RT-Thread BSP Static Build Check / ${{ matrix.legs.RTT_BSP }} (push) Has been cancelled
RT-Thread BSP Static Build Check / collect-artifacts (push) Has been cancelled
pkgs_test / change (push) Has been cancelled
utest_auto_run / AARCH64-rtsmart :default.cfg (push) Has been cancelled
utest_auto_run / A9-rtsmart :default.cfg (push) Has been cancelled
utest_auto_run / RISCV-rtsmart :default.cfg (push) Has been cancelled
utest_auto_run / XUANTIE-rtsmart :default.cfg (push) Has been cancelled
utest_auto_run / AARCH64 :default.cfg (push) Has been cancelled
utest_auto_run / A9 :default.cfg (push) Has been cancelled
utest_auto_run / A9-smp :default.cfg (push) Has been cancelled
utest_auto_run / RISCV :default.cfg (push) Has been cancelled
ToolsCI / Tools (push) Has been cancelled
This commit is contained in:
@@ -8,6 +8,7 @@
|
||||
# Change Logs:
|
||||
# Date Author Notes
|
||||
# 2024-08-27 Supperthomas the first version
|
||||
# 2025-08-09 ThearchyHelios Fix Darwin detection and URL
|
||||
#
|
||||
|
||||
#这个脚本用于安装RT-Thread开发环境 请确保网络畅通
|
||||
@@ -58,7 +59,7 @@ detect_os() {
|
||||
if [ -f "/etc/os-release" ]; then
|
||||
OS="Linux"
|
||||
elif [ -f "/System/Library/CoreServices/SystemVersion.plist" ]; then
|
||||
OS="macOS"
|
||||
OS="Darwin"
|
||||
elif [[ -d "/mnt/c/Windows" || -d "/c/Windows" ]]; then
|
||||
OS="WSL"
|
||||
else
|
||||
@@ -91,7 +92,7 @@ install_on_ubuntu() {
|
||||
|
||||
# 根据检测结果决定是否使用--gitee参数
|
||||
if [ "$use_gitee" = true ]; then
|
||||
wget https://raw.githubusercontent.com/RT-Thread/env/master/install_ubuntu.sh
|
||||
wget https://gitee.com/RT-Thread-Mirror/env/raw/master/install_ubuntu.sh
|
||||
chmod 777 install_ubuntu.sh
|
||||
echo "Installing on China gitee..."
|
||||
./install_ubuntu.sh --gitee
|
||||
@@ -124,7 +125,7 @@ install_on_macos() {
|
||||
|
||||
# 根据检测结果决定是否使用--gitee参数
|
||||
if [ "$use_gitee" = true ]; then
|
||||
wget https://raw.githubusercontent.com/RT-Thread/env/master/install_macos.sh
|
||||
wget https://gitee.com/RT-Thread-Mirror/env/raw/master/install_macos.sh
|
||||
chmod 777 install_macos.sh
|
||||
echo "Installing on China gitee..."
|
||||
./install_macos.sh --gitee
|
||||
@@ -147,7 +148,7 @@ install_on_windows() {
|
||||
|
||||
# 根据检测结果决定是否使用--gitee参数
|
||||
if [ "$use_gitee" = true ]; then
|
||||
wget https://raw.githubusercontent.com/RT-Thread/env/master/install_windows.ps1
|
||||
wget https://gitee.com/RT-Thread-Mirror/env/raw/master/install_windows.ps1
|
||||
echo "Installing on China gitee..."
|
||||
./install_windows.ps1 --gitee
|
||||
else
|
||||
@@ -162,7 +163,7 @@ install_on_opensuse() {
|
||||
echo "Installing on openSUSE..."
|
||||
use_gitee=$(check_if_china_ip)
|
||||
if [ "$use_gitee" = true ]; then
|
||||
wget https://raw.githubusercontent.com/RT-Thread/env/master/install_suse.sh
|
||||
wget https://gitee.com/RT-Thread-Mirror/env/raw/master/install_suse.sh
|
||||
chmod 777 install_suse.sh
|
||||
echo "Installing on China gitee..."
|
||||
./install_suse.sh --gitee
|
||||
@@ -198,7 +199,7 @@ main() {
|
||||
;;
|
||||
esac
|
||||
;;
|
||||
macOS)
|
||||
Darwin)
|
||||
install_on_macos
|
||||
;;
|
||||
WSL)
|
||||
|
||||
Reference in New Issue
Block a user