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
|
@ -9,6 +9,7 @@ import sys
|
|||
import pmb.aportgen
|
||||
import pmb.build
|
||||
import pmb.build.autodetect
|
||||
import pmb.sideload
|
||||
import pmb.chroot
|
||||
import pmb.chroot.initfs
|
||||
import pmb.chroot.other
|
||||
|
@ -113,6 +114,15 @@ def checksum(args):
|
|||
pmb.build.checksum.update(args, package)
|
||||
|
||||
|
||||
def sideload(args):
|
||||
arch = args.deviceinfo["arch"]
|
||||
if args.arch:
|
||||
arch = args.arch
|
||||
user = args.user
|
||||
host = args.host
|
||||
pmb.sideload.sideload(args, user, host, arch, args.install_key, args.packages)
|
||||
|
||||
|
||||
def chroot(args):
|
||||
# Suffix
|
||||
suffix = _parse_suffix(args)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue