diff --git a/Makefile b/Makefile index 5db27a31..24e358ce 100644 --- a/Makefile +++ b/Makefile @@ -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 # 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 $^ > $@ # If any of the input files are updated, rebuild the archive. -$(PWN_RELEASE).zip: $(PWN_RELEASE).img $(PWN_RELEASE).sha256 - zip $(PWN_RELEASE).zip $^ +pwnagotchi-$(PWN_VERSION)-arm64.zip: ../../pwnagotchi-$(PWN_VERSION)-arm64.img pwnagotchi-$(PWN_VERSION)-arm64.sha256 + zip pwnagotchi-$(PWN_VERSION)-arm64.zip $^ .PHONY: image -image: $(PWN_RELEASE).zip +image: pwnagotchi-$(PWN_VERSION)-arm64.zip clean: - python3 setup.py clean --all diff --git a/builder/pwnagotchi.json b/builder/pwnagotchi.json index 554c1653..d9c87f78 100644 --- a/builder/pwnagotchi.json +++ b/builder/pwnagotchi.json @@ -90,7 +90,7 @@ { "type": "file", "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",