1
0

Added SHA checksums for android Jenkins build; Few improvements (#3484)

* Added SHA checksums for android Jenkins build; Few improvements

* Fixes
This commit is contained in:
Cl1608Ho 2016-12-18 10:23:52 +01:00 committed by Alexander Harkness
parent a3b352550e
commit 47eff2bcfa

View File

@ -70,10 +70,10 @@ case "$1" in
;; ;;
all) all)
echo "Packing server.zip" echo "Packing server.zip ..."
mkdir -p Server mkdir -p Server
cd ../Server cd $BASEDIR/../Server
zip -r ../android/Server/server.zip * zip -r $BASEDIR/Server/server.zip *
for arch in armeabi armeabi-v7a arm64-v8a mips mips64 x86 x86_64; do for arch in armeabi armeabi-v7a arm64-v8a mips mips64 x86 x86_64; do
echo "Doing ... $arch ..." && \ echo "Doing ... $arch ..." && \
@ -85,6 +85,12 @@ case "$1" in
rm Cuberite rm Cuberite
done 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" echo "Done! The built zip files await you in the Server/ directory"
exit; exit;
;; ;;
@ -94,7 +100,7 @@ case "$1" in
;; ;;
esac esac
mkdir -p ../android-build mkdir -p $BASEDIR/../android-build
cd ../android-build cd $BASEDIR/../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" "$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" make -j "$THREADS"