android gradle build: fix apk name

This commit is contained in:
SomberNight 2020-02-13 01:36:04 +01:00
parent e5cc1855da
commit 7578fea609
No known key found for this signature in database
GPG key ID: B33B5F232C6271E9

View file

@ -1181,9 +1181,9 @@ class TargetAndroid(Target):
if is_gradle_build:
# on gradle build, the apk use the package name, and have no version
packagename = basename(dist_dir) # gradle specifically uses the folder name
packagename_src = basename(dist_dir) # gradle specifically uses the folder name
apk = u'{packagename}-{mode}.apk'.format(
packagename=packagename, mode=mode)
packagename=packagename_src, mode=mode)
apk_dir = join(dist_dir, "build", "outputs", "apk", mode_sign)
else:
# on ant, the apk use the title, and have version