Signed-off-by: Jeroen Oudshoorn <oudshoorn.jeroen@gmail.com>
This commit is contained in:
Jeroen Oudshoorn
2023-09-29 13:07:21 +02:00
parent 45d8265078
commit bfbe45f02f
2 changed files with 5 additions and 5 deletions

View File

@ -56,15 +56,15 @@ $(PWN_RELEASE).img: $(SDIST) builder/pwnagotchi.json builder/pwnagotchi.yml $(sh
cd builder && sudo $(UNSHARE) $(PACKER) build -var "pwn_hostname=$(PWN_HOSTNAME)" -var "pwn_version=$(PWN_VERSION)" pwnagotchi.json cd builder && sudo $(UNSHARE) $(PACKER) build -var "pwn_hostname=$(PWN_HOSTNAME)" -var "pwn_version=$(PWN_VERSION)" pwnagotchi.json
# If any of these files are updated, rebuild the checksums. # If any of these files are updated, rebuild the checksums.
$(PWN_RELEASE).sha256: $(PWN_RELEASE).img pwnagotchi-$(PWN_VERSION)-arm64sha256: ../../pwnagotchi-$(PWN_VERSION)-arm64.img
sha256sum $^ > $@ sha256sum $^ > $@
# If any of the input files are updated, rebuild the archive. # If any of the input files are updated, rebuild the archive.
$(PWN_RELEASE).zip: $(PWN_RELEASE).img $(PWN_RELEASE).sha256 pwnagotchi-$(PWN_VERSION)-arm64.zip: ../../pwnagotchi-$(PWN_VERSION)-arm64.img pwnagotchi-$(PWN_VERSION)-arm64.sha256
zip $(PWN_RELEASE).zip $^ zip pwnagotchi-$(PWN_VERSION)-arm64.zip $^
.PHONY: image .PHONY: image
image: $(PWN_RELEASE).zip image: pwnagotchi-$(PWN_VERSION)-arm64.zip
clean: clean:
- python3 setup.py clean --all - python3 setup.py clean --all

View File

@ -90,7 +90,7 @@
{ {
"type": "file", "type": "file",
"source": "../builder/data/etc/update-motd.d/01-motd", "source": "../builder/data/etc/update-motd.d/01-motd",
"destination": "/etc/update-motd.d/01-motd", "destination": "/etc/update-motd.d/01-motd"
}, },
{ {
"type": "shell", "type": "shell",