Skip to content

Commit e766ae2

Browse files
committed
Fix the build sequence
1 parent f3ed157 commit e766ae2

File tree

2 files changed

+12
-13
lines changed

2 files changed

+12
-13
lines changed

Diff for: build.sh

+11-12
Original file line numberDiff line numberDiff line change
@@ -4,23 +4,22 @@ function try () {
44
"$@" || exit -1
55
}
66

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
159
try $ANDROID_NDK_HOME/ndk-build -j8
16-
1710
# copy executables
1811
for app in pdnsd redsocks ss-local ss-tunnel tun2socks
1912
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
2217
try mv libs/armeabi-v7a/$app assets/armeabi-v7a/
2318
try mv libs/x86/$app assets/x86/
2419
done
20+
popd
2521

26-
try popd
22+
# Build kcptun
23+
pushd kcptun
24+
try ./make.bash
25+
popd

Diff for: travis-ci/setup.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ if [ ! -d "$GOROOT_BOOTSTRAP" ]; then
2626
mkdir -p $GOROOT_BOOTSTRAP
2727
pushd $HOME/.android
2828
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
3030
popd
3131
fi
3232

0 commit comments

Comments
 (0)