Show python for android debug and append --sign for p4a when asking for a release.

This commit is contained in:
Mathieu Virbel 2017-02-06 02:28:13 +00:00
parent f3baa64f63
commit 3e931fc706

View file

@ -4,6 +4,7 @@ Android target, based on python-for-android project (new toolchain)
''' '''
import sys import sys
import buildozer
from buildozer.targets.android import TargetAndroid from buildozer.targets.android import TargetAndroid
from buildozer import USE_COLOR from buildozer import USE_COLOR
from os.path import join, expanduser, realpath from os.path import join, expanduser, realpath
@ -13,7 +14,7 @@ class TargetAndroidNew(TargetAndroid):
targetname = 'android_new' targetname = 'android_new'
p4a_branch = "master" p4a_branch = "master"
p4a_directory = "python-for-android-master" p4a_directory = "python-for-android-master"
p4a_apk_cmd = "apk --bootstrap=" p4a_apk_cmd = "apk --debug --bootstrap="
extra_p4a_args = '' extra_p4a_args = ''
def __init__(self, buildozer): def __init__(self, buildozer):
@ -89,6 +90,7 @@ class TargetAndroidNew(TargetAndroid):
continue continue
elif option == "release": elif option == "release":
cmd.append("--release") cmd.append("--release")
cmd.append("--sign")
continue continue
if option == "--window": if option == "--window":
cmd.append("--window") cmd.append("--window")