From afb0ab325baddc1aea7490aceb8868501bcfb8ae Mon Sep 17 00:00:00 2001 From: Santosh Venkatraman Date: Sun, 6 Jan 2019 23:04:37 +0530 Subject: [PATCH 1/2] Warns if input build directory is missing --- build.sh | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/build.sh b/build.sh index 1b41201..5c876dd 100755 --- a/build.sh +++ b/build.sh @@ -13,8 +13,7 @@ fi inputBuildDir="build/app/outputs/apk/release" if [ ! -d $inputBuildDir ]; then - echo "[ERROR] '${inputBuildDir}' does not exist" - exit 1 + echo "[WARN] '${inputBuildDir}' does not exist" fi inputBuildAPKFilename="app-release.apk" outputBuildDir="build-apks" From c2f4d6bad8275b128aa7d5bab17cac26ab60dc6c Mon Sep 17 00:00:00 2001 From: Santosh Venkatraman Date: Sun, 6 Jan 2019 23:05:02 +0530 Subject: [PATCH 2/2] Calls (previously missed) function createOutputBuildAPK --- build.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/build.sh b/build.sh index 5c876dd..bfdb7a6 100755 --- a/build.sh +++ b/build.sh @@ -59,6 +59,7 @@ function installFlutterBuild { createBuildsDir cleanFlutterBuilds buildFutter +createOutputBuildAPK if [[ $1 == "no-install" ]]; then echo "[WARN] Not installing flutter build apk..." else