forked from Mirror/pmbootstrap
Add sideload command
The sideload command runs the supplied names through the pmbootstrap buildsystem to make sure they're up-to-date, then uses scp from the host to copy the built apks to /tmp on the phone and installs them through ssh. If the --install-key option is set then it will also copy over the apk key that's used for signing the packages built by pmbootstrap in case the postmarketOS install on the device isn't build by the same machine as you're sideloading from.
This commit is contained in:
parent
5cbde81842
commit
1921fc5f27
6 changed files with 123 additions and 1 deletions
|
@ -135,6 +135,23 @@ def arguments_export(subparser):
|
|||
return ret
|
||||
|
||||
|
||||
def arguments_sideload(subparser):
|
||||
ret = subparser.add_parser("sideload", help="Push packages to a running"
|
||||
" phone connected over usb or wifi")
|
||||
add_packages_arg(ret, nargs="+")
|
||||
ret.add_argument("--host", help="ip of the device over wifi"
|
||||
" (defaults to 172.16.42.1)",
|
||||
default="172.16.42.1")
|
||||
ret.add_argument("--user", help="use a different username than the"
|
||||
" one set in init")
|
||||
ret.add_argument("--arch", help="use a different architecture than the one"
|
||||
" set in init")
|
||||
ret.add_argument("--install-key", help="install the apk key from this"
|
||||
" machine if needed",
|
||||
action="store_true", dest="install_key")
|
||||
return ret
|
||||
|
||||
|
||||
def arguments_flasher(subparser):
|
||||
ret = subparser.add_parser("flasher", help="flash something to the"
|
||||
" target device")
|
||||
|
@ -533,6 +550,7 @@ def arguments():
|
|||
arguments_repo_missing(sub)
|
||||
arguments_kconfig(sub)
|
||||
arguments_export(sub)
|
||||
arguments_sideload(sub)
|
||||
arguments_flasher(sub)
|
||||
arguments_initfs(sub)
|
||||
arguments_qemu(sub)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue