Skip to content

Commit

Permalink
use unsigned if release mode if used, and no keystore given
Browse files Browse the repository at this point in the history
  • Loading branch information
tito committed Feb 17, 2017
1 parent 9e028ec commit 29e8e9a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pythonforandroid/toolchain.py
Expand Up @@ -736,7 +736,7 @@ def apk(self, args):
if not apk_file:
info_main('# APK filename not found in build output, trying to guess')
suffix = args.build_mode
if suffix == 'release':
if suffix == 'release' and not args.keystore:
suffix = suffix + '-unsigned'
apks = glob.glob(join(dist.dist_dir, 'bin', '*-*-{}.apk'.format(suffix)))
if len(apks) == 0:
Expand Down

0 comments on commit 29e8e9a

Please sign in to comment.