aboutsummaryrefslogtreecommitdiff
path: root/generate-apk-release.sh
diff options
context:
space:
mode:
Diffstat (limited to 'generate-apk-release.sh')
-rwxr-xr-x[-rw-r--r--]generate-apk-release.sh11
1 files changed, 8 insertions, 3 deletions
diff --git a/generate-apk-release.sh b/generate-apk-release.sh
index 00091f4b..d3a44577 100644..100755
--- a/generate-apk-release.sh
+++ b/generate-apk-release.sh
@@ -12,12 +12,17 @@ MODULE_NAME=app
VERSION_KEY=Frost
# Make version key different from module name
+# APK is directly moved by docker
# create a new directory that will contain our generated apk
-mkdir $HOME/$VERSION_KEY/
+# mkdir $HOME/$VERSION_KEY/
# copy generated apk from build folder to the folder just created
-cp -a $MODULE_NAME/build/outputs/apk/releaseTest/. $HOME/$VERSION_KEY/
-printf "Moved apks\n"
+# cp -a $MODULE_NAME/build/outputs/apk/releaseTest/. $HOME/$VERSION_KEY/
+# printf "Moved apks\n"
ls -a $HOME/${VERSION_KEY}
+if [ -z "$(find $HOME/${VERSION_KEY} -name '*.apk')" ]; then
+ echo "No apks found"
+ exit 1
+fi
# go to home and setup git
echo "Clone Git"