diff --git a/ShadowsocksX-NG/LaunchAgentUtils.swift b/ShadowsocksX-NG/LaunchAgentUtils.swift index 5ea5554..006d844 100644 --- a/ShadowsocksX-NG/LaunchAgentUtils.swift +++ b/ShadowsocksX-NG/LaunchAgentUtils.swift @@ -102,7 +102,7 @@ func InstallSSLocal() { let fileMgr = NSFileManager.defaultManager() let homeDir = NSHomeDirectory() let appSupportDir = homeDir+APP_SUPPORT_DIR - if !fileMgr.fileExistsAtPath(appSupportDir + SS_LOCAL_VERSION + "/ss-local") + if !fileMgr.fileExistsAtPath(appSupportDir + "ss-local-\(SS_LOCAL_VERSION)/ss-local") || !fileMgr.fileExistsAtPath(appSupportDir + "libcrypto.1.0.0.dylib") { let bundle = NSBundle.mainBundle() let installerPath = bundle.pathForResource("install_ss_local.sh", ofType: nil)