add adb command to android/android_new
This commit is contained in:
parent
dd82576da9
commit
3ec383479b
2 changed files with 9 additions and 0 deletions
|
@ -34,6 +34,7 @@ from buildozer.libs.version import parse
|
|||
|
||||
|
||||
class TargetAndroid(Target):
|
||||
targetname = 'android'
|
||||
p4a_branch = "old_toolchain"
|
||||
p4a_directory = "python-for-android"
|
||||
p4a_apk_cmd = "python build.py"
|
||||
|
@ -837,6 +838,13 @@ class TargetAndroid(Target):
|
|||
self._serials = serials
|
||||
return serials
|
||||
|
||||
def cmd_adb(self, *args):
|
||||
self.check_requirements()
|
||||
print('To set up ADB in this shell session, execute:')
|
||||
print(' alias adb=$(buildozer {} adb 2>&1 >/dev/null)'
|
||||
.format(self.targetname))
|
||||
sys.stderr.write(self.adb_cmd + '\n')
|
||||
|
||||
def cmd_deploy(self, *args):
|
||||
super(TargetAndroid, self).cmd_deploy(*args)
|
||||
state = self.buildozer.state
|
||||
|
|
|
@ -8,6 +8,7 @@ from os.path import join, expanduser, realpath
|
|||
|
||||
|
||||
class TargetAndroidNew(TargetAndroid):
|
||||
targetname = 'android_new'
|
||||
p4a_branch = "master"
|
||||
p4a_directory = "python-for-android-master"
|
||||
p4a_apk_cmd = "apk --bootstrap=sdl2"
|
||||
|
|
Loading…
Add table
Reference in a new issue