This commit is contained in:
cdle
2023-07-08 12:57:11 +08:00
parent 4bf46badb4
commit 87e6f98876
11 changed files with 133 additions and 71 deletions
+6 -12
View File
@@ -1,4 +1,4 @@
n="sillyplus"
n="sillyGirl"
s="/usr/local/$n"
a=arm64
if [[ $(uname -a | grep "x86_64") != "" ]]; then
@@ -9,21 +9,15 @@ if [ ! -d $s ]; then
fi ;
cd $s;
rm -rf $n;
v=`curl https://gitlab.com/cdle/$a/-/raw/main/compile_time.go --silent | tr -cd "[0-9]"`
d=""
v=`curl https://raw.githubusercontent.com/cdle/binary/main/compile_time.go --silent | tr -cd "[0-9]"`
if [ ${#v} == 13 ]; then
d="https://gitlab.com/cdle/${a}/-/raw/main/sillyplus_linux_${a}_${v}"
d="https://raw.githubusercontent.com/cdle/binary/main/sillyGirl_linux_${a}_${v}"
else
v=`curl https://raw.githubusercontent.com/cdle/binary/main/compile_time.go --silent | tr -cd "[0-9]"`
if [ ${#v} == 13 ]; then
d="https://raw.githubusercontent.com/cdle/binary/main/sillyplus_linux_${a}_${v}"
else
echo "Sorry,你网不好!"
exit
fi
echo "Sorry,你网不好,请使用其他方式下载!"
exit
fi
echo "检测到版本 $v"
echo "正在从 $d 下载..."
curl -o $n $d && chmod 777 $n
echo "傻妞已安装到 $s"
echo "请手动运行 $s/$n -t"
echo "请手动运行 $s/$n 带 -t 进入交互模式"