Also make a link named obfs-local.

This commit is contained in:
Qiu Yuzhou
2018-09-19 23:22:36 +08:00
parent e5683f26f8
commit 0e2399ae73
2 changed files with 3 additions and 2 deletions

View File

@ -11,7 +11,7 @@ import Foundation
let SS_LOCAL_VERSION = "3.1.3" let SS_LOCAL_VERSION = "3.1.3"
let KCPTUN_CLIENT_VERSION = "v20170718" let KCPTUN_CLIENT_VERSION = "v20170718"
let PRIVOXY_VERSION = "3.0.26.static" let PRIVOXY_VERSION = "3.0.26.static"
let SIMPLE_OBFS_VERSION = "0.0.5" let SIMPLE_OBFS_VERSION = "0.0.5_1"
let APP_SUPPORT_DIR = "/Library/Application Support/ShadowsocksX-NG/" let APP_SUPPORT_DIR = "/Library/Application Support/ShadowsocksX-NG/"
let LAUNCH_AGENT_DIR = "/Library/LaunchAgents/" let LAUNCH_AGENT_DIR = "/Library/LaunchAgents/"
let LAUNCH_AGENT_CONF_SSLOCAL_NAME = "com.qiuyuzhou.shadowsocksX-NG.local.plist" let LAUNCH_AGENT_CONF_SSLOCAL_NAME = "com.qiuyuzhou.shadowsocksX-NG.local.plist"

View File

@ -5,7 +5,7 @@ FILE_DIR=`dirname "${BASH_SOURCE[0]}"`
cd "$FILE_DIR" cd "$FILE_DIR"
NGDir="$HOME/Library/Application Support/ShadowsocksX-NG" NGDir="$HOME/Library/Application Support/ShadowsocksX-NG"
TargetDir="$NGDir/simple-obfs-0.0.5" TargetDir="$NGDir/simple-obfs-0.0.5_1"
PluginDir="$NGDir/plugins" PluginDir="$NGDir/plugins"
echo ngdir: ${NGDir} echo ngdir: ${NGDir}
@ -16,5 +16,6 @@ mkdir -p "$PluginDir"
cp -f obfs-local "$TargetDir" cp -f obfs-local "$TargetDir"
ln -sfh "$TargetDir/obfs-local" "$PluginDir/simple-obfs" ln -sfh "$TargetDir/obfs-local" "$PluginDir/simple-obfs"
ln -sfh "$TargetDir/obfs-local" "$PluginDir/obfs-local"
echo done echo done