Skip to content

Commit

Permalink
Merge pull request #978 from misl6/fix-dist-dir
Browse files Browse the repository at this point in the history
Fixes packaging for current p4a develop branch
  • Loading branch information
AndreMiras committed Oct 1, 2019
2 parents f01d09c + 99ad83a commit d483847
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions buildozer/targets/android.py
Original file line number Diff line number Diff line change
Expand Up @@ -789,7 +789,7 @@ def get_available_packages(self):
return True

def get_dist_dir(self, dist_name):
return join(self._build_dir, 'dists', dist_name)
return join(self._build_dir, 'dists', "{}__{}".format(dist_name, self._arch))

def get_local_recipes_dir(self):
local_recipes = self.buildozer.config.getdefault('app', 'p4a.local_recipes')
Expand Down Expand Up @@ -1128,8 +1128,8 @@ def build_package(self):

if is_gradle_build:
# on gradle build, the apk use the package name, and have no version
apk = u'{packagename}-{mode}.apk'.format(
packagename=packagename, mode=mode)
apk = u'{packagename}__{arch}-{mode}.apk'.format(
packagename=packagename, arch=self._arch, mode=mode)
apk_dir = join(dist_dir, "build", "outputs", "apk", mode_sign)
else:
# on ant, the apk use the title, and have version
Expand Down

0 comments on commit d483847

Please sign in to comment.