feat: use chinese mirror address

Signed-off-by: MiaoWoo <admin@yumc.pw>
This commit is contained in:
2019-07-11 00:05:18 +08:00
parent 51a2c6b6ed
commit 6b31a5ffc5

View File

@ -36,7 +36,7 @@ info " 欢迎使用 Tera 一键挖矿系统"
info "" info ""
info " by MiaoWoo" info " by MiaoWoo"
info "" info ""
info " 版本 v1.1" info " 版本 v1.1.1"
info "==============================" info "=============================="
if [[ ! -f "OneKeyTera.sh" || ! -f ".lock" || $(cat .lock) -lt $(($(date +%s) - 86400)) ]]; then if [[ ! -f "OneKeyTera.sh" || ! -f ".lock" || $(cat .lock) -lt $(($(date +%s) - 86400)) ]]; then
@ -53,7 +53,7 @@ info "开始检测运行环境..."
if [[ ! -d node ]]; then if [[ ! -d node ]]; then
warn "未安装NodeJS 开始下载二进制包 请稍候..." warn "未安装NodeJS 开始下载二进制包 请稍候..."
info "下载过程根据您的网络状况可能需要 1-10 分钟..." info "下载过程根据您的网络状况可能需要 1-10 分钟..."
curl -o node.zip https://nodejs.org/dist/v10.16.0/node-v10.16.0-win-x64.zip curl -o node.zip https://dev.tencent.com/u/502647092/p/YumRepo/git/raw/master/node-v10.16.0-win-x64.zip
info "下载完成 开始解压Node环境 请稍候..." info "下载完成 开始解压Node环境 请稍候..."
unzip -q node.zip unzip -q node.zip
mv node-v10.16.0-win-x64 node mv node-v10.16.0-win-x64 node
@ -70,7 +70,7 @@ echo "NodeJS 二进制版本: $(${NODE} -v)"
if [[ ! -d tera ]]; then if [[ ! -d tera ]]; then
warn "未找到 Tera 源代码 开始Clone项目 请稍候..." warn "未找到 Tera 源代码 开始Clone项目 请稍候..."
info "下载过程根据您的网络状况可能需要 1-5 分钟..." info "下载过程根据您的网络状况可能需要 1-5 分钟..."
git clone https://git.yumc.pw/502647092/tera.git curl -o- https://git.yumc.pw/502647092/tera/archive/master.tar.gz | tar -xzC ${ROOT}/tera --strip-components=1
fi fi
TERA_ROOT=${ROOT}/tera/Source TERA_ROOT=${ROOT}/tera/Source
cd "${TERA_ROOT}" cd "${TERA_ROOT}"