Fix dependences error of ss-local.
This commit is contained in:
@ -103,7 +103,8 @@ func InstallSSLocal() {
|
|||||||
let fileMgr = FileManager.default
|
let fileMgr = FileManager.default
|
||||||
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 + "ss-local-\(SS_LOCAL_VERSION)/libmbedcrypto.0.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: [""])
|
||||||
|
@ -22,6 +22,7 @@ ln -s "$TargetDir" "$LatestTargetDir"
|
|||||||
|
|
||||||
cp -f libev.4.dylib "$TargetDir"
|
cp -f libev.4.dylib "$TargetDir"
|
||||||
cp -f libmbedcrypto.2.4.2.dylib "$TargetDir"
|
cp -f libmbedcrypto.2.4.2.dylib "$TargetDir"
|
||||||
|
ln -s "$TargetDir/libmbedcrypto.2.4.2.dylib" "$TargetDir/libmbedcrypto.0.dylib"
|
||||||
cp -f libpcre.1.dylib "$TargetDir"
|
cp -f libpcre.1.dylib "$TargetDir"
|
||||||
cp -f libsodium.18.dylib "$TargetDir"
|
cp -f libsodium.18.dylib "$TargetDir"
|
||||||
cp -f libudns.0.dylib "$TargetDir"
|
cp -f libudns.0.dylib "$TargetDir"
|
||||||
|
Reference in New Issue
Block a user