File tree Expand file tree Collapse file tree 2 files changed +0
-18
lines changed
Expand file tree Collapse file tree 2 files changed +0
-18
lines changed Original file line number Diff line number Diff line change 11$DEFAULT_RTT_PACKAGE_URL = " https://github.com/RT-Thread/packages.git"
2- # you can change the package url by defining RTT_PACKAGE_URL, ex:
3- # export RTT_PACKAGE_URL=https://github.com/Varanda-Labs/packages.git
4- $RTT_URL = " https://github.com/RT-Thread/rt-thread.git"
52$ENV_URL = " https://github.com/RT-Thread/env.git"
63
74if ($args [0 ] -eq " --gitee" ) {
85 echo " Using gitee service."
96 $DEFAULT_RTT_PACKAGE_URL = " https://gitee.com/RT-Thread-Mirror/packages.git"
10- $RTT_URL = " https://gitee.com/rtthread/rt-thread.git"
117 $ENV_URL = " https://gitee.com/RT-Thread-Mirror/env.git"
128}
139
Original file line number Diff line number Diff line change 11#! /usr/bin/env bash
22
33DEFAULT_RTT_PACKAGE_URL=https://github.com/RT-Thread/packages.git
4- # you can change the package url by defining RTT_PACKAGE_URL, ex:
5- # export RTT_PACKAGE_URL=https://github.com/Varanda-Labs/packages.git
6- RTT_URL=https://github.com/RT-Thread/rt-thread.git
74ENV_URL=https://github.com/RT-Thread/env.git
85
96if [ $1 ] && [ $1 = --gitee ]; then
107 gitee=1
118 DEFAULT_RTT_PACKAGE_URL=https://gitee.com/RT-Thread-Mirror/packages.git
12- RTT_URL=https://gitee.com/rtthread/rt-thread.git
139 ENV_URL=https://gitee.com/RT-Thread-Mirror/env.git
1410fi
1511
@@ -32,13 +28,3 @@ if ! [ -d $env_dir ]; then
3228 git clone $ENV_URL $env_dir /tools/scripts --depth=1
3329 echo -e ' export PATH=`python3 -m site --user-base`/bin:$HOME/.env/tools/scripts:$PATH\nexport RTT_EXEC_PATH=/usr/bin' > $env_dir /env.sh
3430fi
35-
36- RTT_ROOT=$HOME /rt-thread
37- # you can download rt-thread to another directory by changing RTT_ROOT
38- if ! [ -d $RTT_ROOT ]; then
39- git clone $RTT_URL $RTT_ROOT --depth=1
40- if [ $gitee ]; then
41- cd $RTT_ROOT
42- git checkout master
43- fi
44- fi
You can’t perform that action at this time.
0 commit comments