From 47eff2bcfa101cb0b9afcc5dfab450dcd3be2623 Mon Sep 17 00:00:00 2001 From: Cl1608Ho Date: Sun, 18 Dec 2016 10:23:52 +0100 Subject: Added SHA checksums for android Jenkins build; Few improvements (#3484) * Added SHA checksums for android Jenkins build; Few improvements * Fixes --- android/compile.sh | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) (limited to 'android') diff --git a/android/compile.sh b/android/compile.sh index c10731a7f..78a42d883 100755 --- a/android/compile.sh +++ b/android/compile.sh @@ -70,10 +70,10 @@ case "$1" in ;; all) - echo "Packing server.zip" + echo "Packing server.zip ..." mkdir -p Server - cd ../Server - zip -r ../android/Server/server.zip * + cd $BASEDIR/../Server + zip -r $BASEDIR/Server/server.zip * for arch in armeabi armeabi-v7a arm64-v8a mips mips64 x86 x86_64; do echo "Doing ... $arch ..." && \ @@ -85,6 +85,12 @@ case "$1" in rm Cuberite done + cd $BASEDIR/Server + for file in server.zip armeabi.zip armeabi-v7a.zip arm64-v8a.zip mips.zip mips64.zip x86.zip x86_64.zip; do + echo "Generating sha1 sum for ... $file ..." && \ + sha1sum "$file" > "$file".sha1 + done + echo "Done! The built zip files await you in the Server/ directory" exit; ;; @@ -94,7 +100,7 @@ case "$1" in ;; esac -mkdir -p ../android-build -cd ../android-build -"$CMAKE" ../android -DCMAKE_SYSTEM_NAME=Android -DCMAKE_SYSTEM_VERSION="$APILEVEL" -DCMAKE_BUILD_TYPE="$TYPE" -DCMAKE_ANDROID_ARCH_ABI="$1" -DCMAKE_ANDROID_NDK="$NDK" +mkdir -p $BASEDIR/../android-build +cd $BASEDIR/../android-build +"$CMAKE" $BASEDIR/../android -DCMAKE_SYSTEM_NAME=Android -DCMAKE_SYSTEM_VERSION="$APILEVEL" -DCMAKE_BUILD_TYPE="$TYPE" -DCMAKE_ANDROID_ARCH_ABI="$1" -DCMAKE_ANDROID_NDK="$NDK" make -j "$THREADS" -- cgit v1.2.3