Signed-off-by: Jeroen Oudshoorn <oudshoorn.jeroen@gmail.com>
This commit is contained in:
Jeroen Oudshoorn
2023-11-03 18:04:38 +01:00
parent 8193f94969
commit 5285668790
2 changed files with 14 additions and 4 deletions

View File

@ -51,7 +51,7 @@ $(SDIST): setup.py pwnagotchi
$(PWN_RELEASE).img: | $(PACKER)
# If the packer or ansible files are updated, rebuild the image.
$(PWN_RELEASE).img: $(SDIST) builder/pwnagotchi.json.pkr.hcl $(shell find builder/data -type f)
$(PWN_RELEASE).img: $(SDIST) builder/pwnagotchi.json.pkr.hcl raspberrypi32.yml raspberry64.yml orangepi.yml build_install_gopkg.yml nexmon.yml $(shell find builder/data -type f)
# sudo $(PACKER) plugins install github.com/solo-io/arm-image
# sudo $(PACKER) plugins install github.com/hashicorp/ansible

View File

@ -324,7 +324,7 @@
- name: clone pwnagotchi repository
git:
repo: https://github.com/Sniffleupagus/pwnagotchi-snflpgs.git
repo: https://github.com/jayofelony/pwnagotchi-torch.git
dest: /usr/local/src/pwnagotchi
register: pwnagotchigit
@ -337,12 +337,22 @@
chdir: /usr/local/src/pwnagotchi
when: (pwnagotchigit.changed) or (pip_packages['pwnagotchi'] is undefined) or (pip_packages['pwnagotchi'] != pwnagotchi_version)
- name: download torch whl
get_url:
url: "{{ packages.torch.url }}"
dest: /usr/local/src/
- name: download torchvision whl
get_url:
url: "{{ packages.torchvision.url }}"
dest: /usr/local/src/
- name: install 32-bit pwnagotchi wheel and dependencies with 32-bit torch wheels
pip:
name:
- "{{ /usr/local/src/packages.torch.url | basename }}"
- "{{ /usr/local/src/packages.torchvision.url | basename }}"
- "{{ lookup('fileglob', '/usr/local/src/pwnagotchi/dist/pwnagotchi*.whl') }}"
- "{{ packages.torch.url | basename }}"
- "{{ packages.torchvision.url | basename }}"
extra_args: "--no-cache-dir"
environment:
#QEMU_CPU: arm1176