-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathinstall_ss_local.sh
executable file
·42 lines (29 loc) · 1.09 KB
/
install_ss_local.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
#!/bin/bash
# install_ss_local.sh
# ShadowsocksX-NG
#
# Created by 邱宇舟 on 16/6/6.
# Copyright © 2016年 qiuyuzhou. All rights reserved.
cd `dirname "${BASH_SOURCE[0]}"`
NGDir="$HOME/Library/Application Support/ShadowsocksX-dummy"
TargetDir="$NGDir/ss-local-3.1.3"
LatestTargetDir="$NGDir/ss-local-latest"
echo ngdir: ${NGDir}
mkdir -p "$TargetDir"
cp -f ss-local "$TargetDir"
rm -f "$LatestTargetDir"
ln -s "$TargetDir" "$LatestTargetDir"
cp -f libev.4.dylib "$TargetDir"
# 2.8.0 https://bintray.com/homebrew/bottles/mbedtls
cp -f libmbedcrypto.2.8.0.dylib "$TargetDir"
ln -s "$TargetDir/libmbedcrypto.2.8.0.dylib" "$TargetDir/libmbedcrypto.1.dylib"
# 8.42 https://bintray.com/homebrew/bottles/pcre
cp -f libpcre.1.dylib "$TargetDir"
# 1.0.16 https://bintray.com/homebrew/bottles/libsodium
cp -f libsodium.23.dylib "$TargetDir"
ln -s "$TargetDir/libsodium.23.dylib" "$TargetDir/libsodium.dylib"
#cp -f libudns.0.dylib "$TargetDir"
# 1.14.0 https://bintray.com/homebrew/bottles/c-ares
cp -f libcares.2.dylib "$TargetDir"
ln -s "$TargetDir/libcares.2.dylib" "$TargetDir/libcares.dylib"
echo done