diff --git a/ShadowsocksX-NG/LaunchAgentUtils.swift b/ShadowsocksX-NG/LaunchAgentUtils.swift index b53611f..712f297 100644 --- a/ShadowsocksX-NG/LaunchAgentUtils.swift +++ b/ShadowsocksX-NG/LaunchAgentUtils.swift @@ -9,7 +9,7 @@ import Foundation let SS_LOCAL_VERSION = "3.0.5" -let KCPTUN_CLIENT_VERSION = "20170117" +let KCPTUN_CLIENT_VERSION = "20170322" let PRIVOXY_VERSION = "3.0.26.static" let APP_SUPPORT_DIR = "/Library/Application Support/ShadowsocksX-NG/" let LAUNCH_AGENT_DIR = "/Library/LaunchAgents/" diff --git a/ShadowsocksX-NG/install_kcptun.sh b/ShadowsocksX-NG/install_kcptun.sh index cffd51f..f30b4b4 100755 --- a/ShadowsocksX-NG/install_kcptun.sh +++ b/ShadowsocksX-NG/install_kcptun.sh @@ -6,10 +6,13 @@ # Created by 邱宇舟 on 2017/1/11. # Copyright © 2017年 qiuyuzhou. All rights reserved. +VERSION="20170322" + cd `dirname "${BASH_SOURCE[0]}"` -mkdir -p "$HOME/Library/Application Support/ShadowsocksX-NG/kcptun_20170117" -cp -f kcptun_client "$HOME/Library/Application Support/ShadowsocksX-NG/kcptun_20170117/" + +mkdir -p "$HOME/Library/Application Support/ShadowsocksX-NG/kcptun_$VERSION" +cp -f kcptun_client "$HOME/Library/Application Support/ShadowsocksX-NG/kcptun_$VERSION/" rm -f "$HOME/Library/Application Support/ShadowsocksX-NG/kcptun_client" -ln -s "$HOME/Library/Application Support/ShadowsocksX-NG/kcptun_20170117/kcptun_client" "$HOME/Library/Application Support/ShadowsocksX-NG/kcptun_client" +ln -s "$HOME/Library/Application Support/ShadowsocksX-NG/kcptun_$VERSION/kcptun_client" "$HOME/Library/Application Support/ShadowsocksX-NG/kcptun_client" echo "install kcptun done" diff --git a/ShadowsocksX-NG/kcptun_client b/ShadowsocksX-NG/kcptun_client index 4352b2a..0ed88fc 100755 Binary files a/ShadowsocksX-NG/kcptun_client and b/ShadowsocksX-NG/kcptun_client differ