File tree 2 files changed +12
-13
lines changed
2 files changed +12
-13
lines changed Original file line number Diff line number Diff line change @@ -4,23 +4,22 @@ function try () {
4
4
" $@ " || exit -1
5
5
}
6
6
7
- pushd kcptun
8
- try ./make.bash
9
- popd
10
-
11
- try pushd src/main
12
-
13
- # Build
14
- # try $ANDROID_NDK_HOME/ndk-build clean
7
+ # Build native binaries
8
+ pushd src/main
15
9
try $ANDROID_NDK_HOME /ndk-build -j8
16
-
17
10
# copy executables
18
11
for app in pdnsd redsocks ss-local ss-tunnel tun2socks
19
12
do
20
- rm -f assets/armeabi-v7a/$app
21
- rm -f assets/x86/$app
13
+ rm -f assets/armeabi-v7a
14
+ rm -f assets/x86
15
+ mkdir -p assets/armeabi-v7a
16
+ mkdir -p assets/x86
22
17
try mv libs/armeabi-v7a/$app assets/armeabi-v7a/
23
18
try mv libs/x86/$app assets/x86/
24
19
done
20
+ popd
25
21
26
- try popd
22
+ # Build kcptun
23
+ pushd kcptun
24
+ try ./make.bash
25
+ popd
Original file line number Diff line number Diff line change @@ -26,7 +26,7 @@ if [ ! -d "$GOROOT_BOOTSTRAP" ]; then
26
26
mkdir -p $GOROOT_BOOTSTRAP
27
27
pushd $HOME /.android
28
28
wget https://storage.googleapis.com/golang/go1.6.3.linux-amd64.tar.gz
29
- tar xvf go1.6.3.linux-amd64.tar.gz
29
+ tar xf go1.6.3.linux-amd64.tar.gz
30
30
popd
31
31
fi
32
32
You can’t perform that action at this time.
0 commit comments