diff options
author | Cl1608Ho <cl1608ho@gmail.com> | 2016-12-18 10:23:52 +0100 |
---|---|---|
committer | Alexander Harkness <me@bearbin.net> | 2016-12-18 10:23:52 +0100 |
commit | 47eff2bcfa101cb0b9afcc5dfab450dcd3be2623 (patch) | |
tree | c7ec98e2625cc3157bbb831d94ef4478a0e4158d /android/compile.sh | |
parent | Updated ProtectionAreas. (diff) | |
download | cuberite-47eff2bcfa101cb0b9afcc5dfab450dcd3be2623.tar cuberite-47eff2bcfa101cb0b9afcc5dfab450dcd3be2623.tar.gz cuberite-47eff2bcfa101cb0b9afcc5dfab450dcd3be2623.tar.bz2 cuberite-47eff2bcfa101cb0b9afcc5dfab450dcd3be2623.tar.lz cuberite-47eff2bcfa101cb0b9afcc5dfab450dcd3be2623.tar.xz cuberite-47eff2bcfa101cb0b9afcc5dfab450dcd3be2623.tar.zst cuberite-47eff2bcfa101cb0b9afcc5dfab450dcd3be2623.zip |
Diffstat (limited to '')
-rwxr-xr-x | android/compile.sh | 18 |
1 files changed, 12 insertions, 6 deletions
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" |