@@ -70,6 +70,7 @@ echo "NodeJS 二进制版本: $(${NODE} -v)"
 | 
			
		||||
if [[ ! -d tera ]]; then
 | 
			
		||||
    warn "未找到 Tera 源代码 开始Clone项目 请稍候..."
 | 
			
		||||
    info "下载过程根据您的网络状况可能需要 1-5 分钟..."
 | 
			
		||||
    mkdir -p ${ROOT}/tera
 | 
			
		||||
    curl -o- https://git.yumc.pw/502647092/tera/archive/master.tar.gz | tar -xzC ${ROOT}/tera --strip-components=1
 | 
			
		||||
fi
 | 
			
		||||
TERA_ROOT=${ROOT}/tera/Source
 | 
			
		||||
@@ -80,12 +81,15 @@ if [[ ! -d node_modules ]]; then
 | 
			
		||||
    "${NPM}" config set registry https://registry.npm.taobao.org
 | 
			
		||||
    info "安装过程根据您的网络状况可能需要 1-5 分钟..."
 | 
			
		||||
    "${NPM}" install
 | 
			
		||||
    info "依赖安装完成 如果启动失败 请尝试删除 node_modules 目录..."
 | 
			
		||||
fi
 | 
			
		||||
 | 
			
		||||
if [[ ! -f "${TERA_ROOT}/node_modules/secp256k1/build/Release/secp256k1.node" ]]; then
 | 
			
		||||
    warn "未检测到 secp256k1.node 模块 开始下载 Windows 版本..."
 | 
			
		||||
    mkdir -p "${TERA_ROOT}/node_modules/secp256k1/build/Release"
 | 
			
		||||
    curl -o "${TERA_ROOT}/node_modules/secp256k1/build/Release/secp256k1.node" https://git.yumc.pw/cloud/script/raw/master/tera/secp256k1.node
 | 
			
		||||
    info "算法 secp256k1.node 模块 安装完成..."
 | 
			
		||||
    info "如果还是提示类库警告 请删除 node_modules 目录 重新运行脚本..."
 | 
			
		||||
fi
 | 
			
		||||
 | 
			
		||||
# 申请公网IP端口
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user