mirror of
https://github.com/jayofelony/pwnagotchi.git
synced 2025-07-01 18:37:27 -04:00
Update for bookworm release
This commit is contained in:
2
.idea/misc.xml
generated
2
.idea/misc.xml
generated
@ -3,5 +3,5 @@
|
|||||||
<component name="Black">
|
<component name="Black">
|
||||||
<option name="sdkName" value="Python 3.11 (pwnagotchi)" />
|
<option name="sdkName" value="Python 3.11 (pwnagotchi)" />
|
||||||
</component>
|
</component>
|
||||||
<component name="ProjectRootManager" version="2" project-jdk-name="Python 3.10 (pwnagotchi-torch)" project-jdk-type="Python SDK" />
|
<component name="ProjectRootManager" version="2" project-jdk-name="Python 3.10 (pwnagotchi-torch-bookworm)" project-jdk-type="Python SDK" />
|
||||||
</project>
|
</project>
|
@ -336,16 +336,6 @@
|
|||||||
git:
|
git:
|
||||||
repo: https://github.com/jayofelony/pwnagotchi-torch.git
|
repo: https://github.com/jayofelony/pwnagotchi-torch.git
|
||||||
dest: /usr/local/src/pwnagotchi
|
dest: /usr/local/src/pwnagotchi
|
||||||
register: pwnagotchigit
|
|
||||||
|
|
||||||
# is this even necessary? Can't we just link from /home/pi/pwnagotchi to /usr/local/{bin,lib,etc}
|
|
||||||
# then just git update in the home dir and encourage hacking?
|
|
||||||
# make owned by pi.pi, and custom plugins.
|
|
||||||
- name: build pwnagotchi wheel
|
|
||||||
command: "python3 setup.py sdist bdist_wheel"
|
|
||||||
args:
|
|
||||||
chdir: /usr/local/src/pwnagotchi
|
|
||||||
when: (pwnagotchigit.changed) or (pip_packages['pwnagotchi'] is undefined) or (pip_packages['pwnagotchi'] != pwnagotchi_version)
|
|
||||||
|
|
||||||
- name: download torch whl
|
- name: download torch whl
|
||||||
get_url:
|
get_url:
|
||||||
@ -360,14 +350,20 @@
|
|||||||
- name: install 32-bit pwnagotchi wheel and dependencies with 32-bit torch wheels
|
- name: install 32-bit pwnagotchi wheel and dependencies with 32-bit torch wheels
|
||||||
pip:
|
pip:
|
||||||
name:
|
name:
|
||||||
- "{{ lookup('fileglob', '/usr/local/src/pwnagotchi/dist/pwnagotchi*.whl') }}"
|
|
||||||
- "{{ packages.torch.url }}"
|
- "{{ packages.torch.url }}"
|
||||||
- "{{ packages.torchvision.url }}"
|
- "{{ packages.torchvision.url }}"
|
||||||
extra_args: "--no-cache-dir --break-system-packages"
|
extra_args: "--no-cache-dir --break-system-packages"
|
||||||
environment:
|
environment:
|
||||||
QEMU_CPU: arm1176
|
QEMU_CPU: arm1176
|
||||||
QEMU_UNAME: "{{ kernel.full }}"
|
QEMU_UNAME: "{{ kernel.full }}"
|
||||||
when: (pwnagotchigit.changed) or (pip_packages['pwnagotchi'] is undefined) or (pip_packages['pwnagotchi'] != pwnagotchi_version)
|
|
||||||
|
- name: build pwnagotchi wheel
|
||||||
|
command: "pip install . --no-cache-dir --break-system-packages"
|
||||||
|
args:
|
||||||
|
chdir: /usr/local/src/pwnagotchi
|
||||||
|
environment:
|
||||||
|
QEMU_CPU: arm1176
|
||||||
|
QEMU_UNAME: "{{ kernel.full }}"
|
||||||
|
|
||||||
- name: create /usr/local/share/pwnagotchi/ folder
|
- name: create /usr/local/share/pwnagotchi/ folder
|
||||||
file:
|
file:
|
||||||
|
@ -342,7 +342,7 @@
|
|||||||
dest: /usr/local/src/pwnagotchi
|
dest: /usr/local/src/pwnagotchi
|
||||||
|
|
||||||
- name: build pwnagotchi wheel
|
- name: build pwnagotchi wheel
|
||||||
command: "pip install . --break-system-packages"
|
command: "pip install . --no-cache-dir --break-system-packages"
|
||||||
args:
|
args:
|
||||||
chdir: /usr/local/src/pwnagotchi
|
chdir: /usr/local/src/pwnagotchi
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user