-
Notifications
You must be signed in to change notification settings - Fork 19
/
Copy pathQLDependency.sh
64 lines (54 loc) · 1.97 KB
/
QLDependency.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
#!/usr/bin/env bash
#
# 青龙一键安装脚本
# GitHub仓库: https://github.com/wudongdefeng/tem-update
# 安装报错,请提交Issue
# 有其他需要的依赖,欢迎到源仓库提交Pull Request
TIME() {
[[ -z "$1" ]] && {
echo -ne " "
} || {
case $1 in
r) export Color="\e[31;1m";;
g) export Color="\e[32;1m";;
b) export Color="\e[34;1m";;
y) export Color="\e[33;1m";;
z) export Color="\e[35;1m";;
l) export Color="\e[36;1m";;
esac
[[ $# -lt 2 ]] && echo -e "\e[36m\e[0m ${1}" || {
echo -e "\e[36m\e[0m ${Color}${2}\e[0m"
}
}
}
echo
echo
echo
TIME l "安装依赖..."
echo
TIME y "安装依赖需要时间,请耐心等待!"
echo
sleep 3
echo
echo
echo
#apk add python3 g++ lxml zlib-dev gcc jpeg-dev python3-dev musl-dev freetype-dev
npm config set registry https://registry.npmmirror.com
DIR="/ql/data/scripts"
if [ -d "$DIR" ]; then
echo "青龙版本2.12以上"
cd /ql/data/scripts
pnpm install adler-32 png-js date-fns [email protected] crypto-js ts-md5 tslib global-agent @types/node request jsdom crc qs moment cheerio dotenv [email protected] [email protected] tough-cookie [email protected] http-cookie-agent [email protected]
#pip3 install telebot bs4 pysocks socks cacheout requests canvas ping3 jieba PyExecJS aiohttp redis pycryptodome pytz typescript httpx success --upgrade pip pip telethon
else
echo "青龙版本2.12以下"
cd /ql/scripts
pnpm install adler-32 png-js date-fns [email protected] crypto-js ts-md5 tslib global-agent @types/node request jsdom crc qs moment cheerio dotenv [email protected] [email protected] tough-cookie [email protected] http-cookie-agent [email protected]
#pip3 install telebot bs4 pysocks socks cacheout requests canvas ping3 jieba PyExecJS aiohttp redis pycryptodome pytz typescript httpx success --upgrade pip pip telethon
fi
echo
TIME g "依赖安装完毕...建议重启 Docker "
echo
TIME g "有任何问题,请在此仓库提交Issue: https://github.com/wudongdefeng/tem-update"
echo
exit 0