From 42673b7e6d204984cb748164a917eae9569849fd Mon Sep 17 00:00:00 2001 From: Akinwale Ariwodola Date: Sat, 21 Aug 2021 20:03:07 +0100 Subject: [PATCH] use correct extension for final binary --- buildozer/targets/android.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/buildozer/targets/android.py b/buildozer/targets/android.py index f5dbd4b..b22b170 100644 --- a/buildozer/targets/android.py +++ b/buildozer/targets/android.py @@ -1280,10 +1280,10 @@ class TargetAndroid(Target): (exists(join(dist_dir, x)) for x in gradle_files)) packagename = config.get('app', 'package.name') + pkgsuffix = 'aar' if packagetype == 'library' else 'apk' if is_gradle_build: # on gradle build, the apk use the package name, and have no version packagename = config.get('app', 'package.name') - pkgsuffix = 'aar' if packagetype == 'library' else 'apk' apk = u'{packagename}-{mode}.{extension}'.format( packagename=packagename, mode=mode, extension=pkgsuffix) apk_dir = join(dist_dir, "build", "outputs", pkgsuffix, @@ -1303,8 +1303,8 @@ class TargetAndroid(Target): mode=mode) apk_dir = join(dist_dir, "bin") - apk_dest = u'{packagename}-{version}-{arch}-{mode}.apk'.format( - packagename=packagename, mode=mode, version=version, + apk_dest = u'{packagename}-{version}-{arch}-{mode}.{extension}'.format( + packagename=packagename, mode=mode, version=version, extension=pkgsuffix, arch=self._arch) # copy to our place