Do not try to deploy android apks if we are not building them.

This commit is contained in:
Matthieu Gautier 2018-02-26 11:36:55 +01:00
parent 6f6ffa5f87
commit d7dd02e922
1 changed files with 1 additions and 1 deletions

View File

@ -168,7 +168,7 @@ elif PLATFORM == 'win32_static':
('{}.exe'.format(b) for b in kiwix_tools_bins)) ('{}.exe'.format(b) for b in kiwix_tools_bins))
elif PLATFORM == 'armhf_static': elif PLATFORM == 'armhf_static':
make_archive('kiwix-tools_armhf-{}.'.format(kiwix_tools_postfix), kiwix_tools_bins) make_archive('kiwix-tools_armhf-{}.'.format(kiwix_tools_postfix), kiwix_tools_bins)
elif PLATFORM.startswith('android_'): elif PLATFORM.startswith('android_') and 'kiwix-android' in TARGETS:
APK_NAME = "kiwix-{}".format(PLATFORM) APK_NAME = "kiwix-{}".format(PLATFORM)
source_debug_dir = BASE_DIR/'kiwix-android'/'app'/'build'/'outputs'/'apk'/'kiwix'/'debug' source_debug_dir = BASE_DIR/'kiwix-android'/'app'/'build'/'outputs'/'apk'/'kiwix'/'debug'
source_release_dir = BASE_DIR/'kiwix-android'/'app'/'build'/'outputs'/'apk'/'kiwix'/'release' source_release_dir = BASE_DIR/'kiwix-android'/'app'/'build'/'outputs'/'apk'/'kiwix'/'release'