Update ss-local from 2.4.6 to 2.5.6
This commit is contained in:
@ -8,7 +8,7 @@
|
|||||||
|
|
||||||
import Foundation
|
import Foundation
|
||||||
|
|
||||||
let SS_LOCAL_VERSION = "2.4.6"
|
let SS_LOCAL_VERSION = "2.5.6"
|
||||||
let PRIVOXY_VERSION = "3.0.26.static"
|
let PRIVOXY_VERSION = "3.0.26.static"
|
||||||
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/"
|
||||||
@ -114,7 +114,8 @@ func InstallSSLocal() {
|
|||||||
let homeDir = NSHomeDirectory()
|
let homeDir = NSHomeDirectory()
|
||||||
let appSupportDir = homeDir+APP_SUPPORT_DIR
|
let appSupportDir = homeDir+APP_SUPPORT_DIR
|
||||||
if !fileMgr.fileExists(atPath: appSupportDir + "ss-local-\(SS_LOCAL_VERSION)/ss-local")
|
if !fileMgr.fileExists(atPath: appSupportDir + "ss-local-\(SS_LOCAL_VERSION)/ss-local")
|
||||||
|| !fileMgr.fileExists(atPath: appSupportDir + "libcrypto.1.0.0.dylib") {
|
|| !fileMgr.fileExists(atPath: appSupportDir + "libcrypto.1.0.0.dylib")
|
||||||
|
|| !fileMgr.fileExists(atPath: appSupportDir + "libpcre.1.dylib") {
|
||||||
let bundle = Bundle.main
|
let bundle = Bundle.main
|
||||||
let installerPath = bundle.path(forResource: "install_ss_local.sh", ofType: nil)
|
let installerPath = bundle.path(forResource: "install_ss_local.sh", ofType: nil)
|
||||||
let task = Process.launchedProcess(launchPath: installerPath!, arguments: [""])
|
let task = Process.launchedProcess(launchPath: installerPath!, arguments: [""])
|
||||||
|
@ -8,11 +8,14 @@
|
|||||||
|
|
||||||
|
|
||||||
cd `dirname "${BASH_SOURCE[0]}"`
|
cd `dirname "${BASH_SOURCE[0]}"`
|
||||||
mkdir -p "$HOME/Library/Application Support/ShadowsocksX-NG/ss-local-2.4.6"
|
mkdir -p "$HOME/Library/Application Support/ShadowsocksX-NG/ss-local-2.5.6"
|
||||||
cp -f ss-local "$HOME/Library/Application Support/ShadowsocksX-NG/ss-local-2.4.6/"
|
cp -f ss-local "$HOME/Library/Application Support/ShadowsocksX-NG/ss-local-2.5.6/"
|
||||||
rm -f "$HOME/Library/Application Support/ShadowsocksX-NG/ss-local"
|
rm -f "$HOME/Library/Application Support/ShadowsocksX-NG/ss-local"
|
||||||
ln -s "$HOME/Library/Application Support/ShadowsocksX-NG/ss-local-2.4.6/ss-local" "$HOME/Library/Application Support/ShadowsocksX-NG/ss-local"
|
ln -s "$HOME/Library/Application Support/ShadowsocksX-NG/ss-local-2.5.6/ss-local" "$HOME/Library/Application Support/ShadowsocksX-NG/ss-local"
|
||||||
|
|
||||||
cp -f libcrypto.1.0.0.dylib "$HOME/Library/Application Support/ShadowsocksX-NG/"
|
cp -f libcrypto.1.0.0.dylib "$HOME/Library/Application Support/ShadowsocksX-NG/"
|
||||||
|
cp -f libpcre.1.dylib "$HOME/Library/Application Support/ShadowsocksX-NG/"
|
||||||
|
rm -f "$HOME/Library/Application Support/ShadowsocksX-NG/libpcre.dylib"
|
||||||
|
ln -s "$HOME/Library/Application Support/ShadowsocksX-NG/libpcre.1.dylib" "$HOME/Library/Application Support/ShadowsocksX-NG/libpcre.dylib"
|
||||||
|
|
||||||
echo done
|
echo done
|
BIN
ShadowsocksX-NG/libpcre.1.dylib
Normal file
BIN
ShadowsocksX-NG/libpcre.1.dylib
Normal file
Binary file not shown.
Binary file not shown.
Reference in New Issue
Block a user