1
1
#! /data/data/com.termux/files/usr/bin/bash -e
2
2
3
- echo -e " \033]0;NapCat安装\007"
4
-
5
3
# 前景色(普通)
6
4
red=' \033[1;31m'
7
5
magenta=' \033[0;1;35;95m'
63
61
if [ -f " $PREFIX /etc/apt/sources.list.bak" ]; then
64
62
mv " $PREFIX /etc/apt/sources.list.bak" " $PREFIX /etc/apt/sources.list"
65
63
fi
66
- if [ ! -d " $PREFIX /var/lib/proot-distro/installed-rootfs/napcat /" ]; then
64
+ if [ ! -d " $PREFIX /var/lib/proot-distro/installed-rootfs/nc /" ]; then
67
65
log " INFO" " 安装debian容器..."
68
66
export PD_OVERRIDE_TARBALL_URL=" https://gh-proxy.com/https://raw.githubusercontent.com/Dong-Jing-Yu/Dong-Jing-Yu.github.io/refs/heads/main/Termux/proot-distro/debian-bookworm-aarch64-pd-v4.17.3.tar.xz"
69
- proot-distro install debian --override-alias napcat
67
+ export PD_OVERRIDE_TARBALL_SHA256=" 95256c700a41e34f3981af46e17f132291116c0e5e34594841ddfc766e627e85"
68
+ proot-distro install debian --override-alias nc
70
69
log " INFO" " 安装完成!"
71
70
fi
72
71
73
72
74
-
75
73
init_cmd=" apt update -y && \
76
74
apt install -y sudo curl && \
77
- curl -O https://github.tbedu.top /https://raw.githubusercontent.com/NapNeko/NapCat-Installer/refs/heads/main/script/install.sh && \
78
- sudo bash install .sh --docker n --cli n --proxy 10 && \
75
+ curl -O https://gh-proxy.com /https://raw.githubusercontent.com/NapNeko/NapCat-Installer/refs/heads/main/script/install.sh && \
76
+ sudo bash napcat .sh --docker n --cli n --proxy 3 && \
79
77
apt autoremove -y && \
80
78
apt clean && \
81
79
rm -rf /tmp/* /var/lib/apt/lists"
82
- proot-distro sh napcat -- bash -c " $init_cmd "
80
+ proot-distro sh nc -- bash -c " $init_cmd "
83
81
84
82
echo -e " ${red} napcat容器安装成功,但请注意在运行上述指令时请加上⬇${reset} \n"
85
- echo -e " ${green} proot-distro sh napcat -- bash -c " [指令]" ${reset} \n"
86
- echo -e " 保持后台可以使用 ${green} screen -dmS napcat bash -c 'proot-distro sh napcat -- bash -c " [指令]" '${reset} \n\n"
87
- echo -e " 进入容器: ${green} proot-distro login napcat ${reset} \n"
88
- echo -e " 启动: ${green} proot-distro sh napcat -- bash -c \" xvfb-run -a qq --no-sandbox\" ${reset} \n"
83
+ echo -e " ${green} proot-distro sh nc -- bash -c " [指令]" ${reset} \n"
84
+ echo -e " 保持后台可以使用 ${green} screen -dmS nc bash -c 'proot-distro sh nc -- bash -c " [指令]" '${reset} \n\n"
85
+ echo -e " 进入容器: ${green} proot-distro login nc ${reset} \n"
86
+ echo -e " 启动: ${green} proot-distro sh nc -- bash -c \" xvfb-run -a qq --no-sandbox\" ${reset} \n"
0 commit comments