Correctly build release of kiwix-lib on android.

The name of the target is `kiwix-lib-app` on android but the key
in the version directory is `kiwix-lib`.
This commit is contained in:
Matthieu Gautier 2020-07-01 11:30:26 +02:00
parent 0419cf5f4d
commit 7afa3f6a52
1 changed files with 5 additions and 1 deletions

View File

@ -53,7 +53,11 @@ else:
# Filter what to build if we are doing a release. # Filter what to build if we are doing a release.
if RELEASE: if RELEASE:
TARGETS = tuple(filter(lambda t: release_versions.get(t) is not None, TARGETS)) def release_filter(project):
if project == "kiwix-lib-app":
project = "kiwix-lib"
return release_versions.get(project) is not None
TARGETS = tuple(filter(release_filter, TARGETS))
for target in TARGETS: for target in TARGETS:
run_kiwix_build(target, platform=PLATFORM_TARGET, make_release=RELEASE) run_kiwix_build(target, platform=PLATFORM_TARGET, make_release=RELEASE)