From 1d4b27b9206ebc21bac60c4b6ad662c0b2cf2426 Mon Sep 17 00:00:00 2001 From: Relintai Date: Thu, 12 Dec 2019 23:31:47 +0100 Subject: [PATCH] Android release template build script. --- build_android_templates_release.sh | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100755 build_android_templates_release.sh diff --git a/build_android_templates_release.sh b/build_android_templates_release.sh new file mode 100755 index 00000000..332c1413 --- /dev/null +++ b/build_android_templates_release.sh @@ -0,0 +1,22 @@ +#!/bin/bash + +# This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. If a copy of the MPL was not distributed with this file, You can obtain one at http://mozilla.org/MPL/2.0/. + +export ANDROID_NDK_ROOT=~/SDKs/Android/NDK/android-ndk-r20b +export ANDROID_NDK_HOME=~/SDKs/Android/NDK/android-ndk-r20b +export ANDROID_HOME=~/SDKs/Android/SDK + +cd ./engine + +scons -j6 platform=android target=release android_arch=armv7 entities_2d=no +scons -j6 platform=android target=release android_arch=arm64v8 entities_2d=no +scons -j6 platform=android target=release android_arch=x86 entities_2d=no + +cd ./platform/android/java + +./gradlew generateGodotTemplates + +cd .. +cd .. +cd .. +cd ..