Skip to content

Commit bccaba6

Browse files
committed
Update Version
1 parent b968c7c commit bccaba6

File tree

5 files changed

+18
-6
lines changed

5 files changed

+18
-6
lines changed

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
description="a tool to manage v2ray config json",
1414
long_description=long_description,
1515
long_description_content_type="text/markdown",
16-
keywords='python v2ray multi-v2ray vmess socks5 vless trojan',
16+
keywords='python v2ray multi-v2ray vmess socks5 vless trojan xray',
1717
author='Jrohy',
1818
author_email='[email protected]',
1919
url='https://github.com/Jrohy/multi-v2ray',

v2ray.sh

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,19 +86,25 @@ removeV2Ray() {
8686
rm -rf /etc/v2ray >/dev/null 2>&1
8787
rm -rf /var/log/v2ray >/dev/null 2>&1
8888

89+
#卸载Xray脚本
90+
bash <(curl -L -s https://multi.netlify.app/go.sh) --remove -x >/dev/null 2>&1
91+
rm -rf /etc/xray >/dev/null 2>&1
92+
rm -rf /var/log/xray >/dev/null 2>&1
93+
8994
#清理v2ray相关iptable规则
9095
bash <(curl -L -s $CLEAN_IPTABLES_SHELL)
9196

9297
#卸载multi-v2ray
9398
pip uninstall v2ray_util -y
9499
rm -rf /usr/share/bash-completion/completions/v2ray.bash >/dev/null 2>&1
95100
rm -rf /usr/share/bash-completion/completions/v2ray >/dev/null 2>&1
101+
rm -rf /usr/share/bash-completion/completions/xray >/dev/null 2>&1
96102
rm -rf /etc/bash_completion.d/v2ray.bash >/dev/null 2>&1
97103
rm -rf /usr/local/bin/v2ray >/dev/null 2>&1
98104
rm -rf /etc/v2ray_util >/dev/null 2>&1
99105

100106
#删除v2ray定时更新任务
101-
crontab -l|sed '/SHELL=/d;/v2ray/d' > crontab.txt
107+
crontab -l|sed '/SHELL=/d;/v2ray/d'|sed '/SHELL=/d;/xray/d' > crontab.txt
102108
crontab crontab.txt >/dev/null 2>&1
103109
rm -f crontab.txt >/dev/null 2>&1
104110

@@ -110,6 +116,7 @@ removeV2Ray() {
110116

111117
#删除multi-v2ray环境变量
112118
sed -i '/v2ray/d' ~/$ENV_FILE
119+
sed -i '/xray/d' ~/$ENV_FILE
113120
source ~/$ENV_FILE
114121

115122
colorEcho ${GREEN} "uninstall success!"
@@ -175,7 +182,12 @@ updateProject() {
175182

176183
#更新v2ray bash_completion脚本
177184
curl $BASH_COMPLETION_SHELL > /usr/share/bash-completion/completions/v2ray
178-
[[ -z $(echo $SHELL|grep zsh) ]] && source /usr/share/bash-completion/completions/v2ray
185+
curl $BASH_COMPLETION_SHELL > /usr/share/bash-completion/completions/xray
186+
sed -i 's/v2ray/xray/g' /usr/share/bash-completion/completions/xray
187+
if [[ -z $(echo $SHELL|grep zsh) ]];then
188+
source /usr/share/bash-completion/completions/v2ray
189+
source /usr/share/bash-completion/completions/xray
190+
fi
179191

180192
#安装V2ray主程序
181193
[[ ${INSTALL_WAY} == 0 ]] && bash <(curl -L -s https://multi.netlify.app/go.sh)

v2ray_util/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
__version__ = '3.8.12.2'
1+
__version__ = '3.9.0'
22

33
import sys
44
if "xray" in sys.argv[0]:
0 Bytes
Binary file not shown.

v2ray_util/locale_i18n/zh_CH/LC_MESSAGES/lang.po

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,8 @@ msgstr "4.查看配置"
5757
msgid "5.Global Setting"
5858
msgstr "5.全局功能"
5959

60-
msgid "6.Update V2Ray"
61-
msgstr "6.更新V2Ray"
60+
msgid "6.Update V2ray"
61+
msgstr "6.更新V2ray"
6262

6363
msgid "6.Update Xray"
6464
msgstr "6.更新Xray"

0 commit comments

Comments
 (0)