From 0df77f24d351a1266282e8ff3b07e79c55071e0e Mon Sep 17 00:00:00 2001 From: Jeroen Oudshoorn Date: Sat, 21 Oct 2023 08:24:29 +0200 Subject: [PATCH] v2.5.0 Signed-off-by: Jeroen Oudshoorn --- builder/pwnagotchi.yml | 7 ++++--- pwnagotchi/plugins/default/auto-update.py | 2 +- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/builder/pwnagotchi.yml b/builder/pwnagotchi.yml index 33b3a950..68c4a83f 100644 --- a/builder/pwnagotchi.yml +++ b/builder/pwnagotchi.yml @@ -121,6 +121,7 @@ - libusb-1.0-0-dev - lsof - make + - pipx - python3-dbus - python3-flask - python3-flask-cors @@ -299,9 +300,9 @@ when: (pwnagotchigit.changed) or (pip_packages['pwnagotchi'] is undefined) or (pip_packages['pwnagotchi'] != pwnagotchi_version) - name: install pwnagotchi wheel and dependencies - pip: - name: "{{ lookup('fileglob', '/usr/local/src/pwnagotchi/dist/pwnagotchi*.whl') }}" - extra_args: "--no-cache-dir" + command: "pipx install dist/pwnagotchi*.whl" + args: + chdir: /usr/local/src/pwnagotchi when: (pwnagotchigit.changed) or (pip_packages['pwnagotchi'] is undefined) or (pip_packages['pwnagotchi'] != pwnagotchi_version) - name: remove pwnagotchi folder diff --git a/pwnagotchi/plugins/default/auto-update.py b/pwnagotchi/plugins/default/auto-update.py index 84dde6f3..f4b1999e 100644 --- a/pwnagotchi/plugins/default/auto-update.py +++ b/pwnagotchi/plugins/default/auto-update.py @@ -126,7 +126,7 @@ def install(display, update): source_path = "%s-%s" % (source_path, update['available']) # setup.py is going to install data files for us - os.system("cd %s && pip3 install ." % source_path) + os.system("cd %s && pipx install ." % source_path) return True