Update release archive rules in Makefile

Closes #1981
This commit is contained in:
TuxSH 2024-05-01 13:30:10 +02:00
parent 5928eefe95
commit 23e478d67a
2 changed files with 6 additions and 4 deletions

1
.gitignore vendored
View File

@ -21,3 +21,4 @@ exceptions/arm11/build
.settings
Luma3DS*.zip
hbmenu.zip

View File

@ -31,16 +31,17 @@ clean:
@rm -rf *.firm *.zip *.3dsx
# boot.3dsx comes from https://github.com/fincs/new-hbmenu/releases
$(NAME)$(REVISION).zip: boot.firm boot.3dsx
@zip -r $@ $^ -x "*.DS_Store*" "*__MACOSX*"
$(NAME)$(REVISION).zip: hbmenu.zip boot.firm
@cp $< $@
@zip $@ boot.firm -x "*.DS_Store*" "*__MACOSX*"
boot.firm: $(SUBFOLDERS)
@firmtool build $@ -D sysmodules/sysmodules.bin arm11/arm11.elf arm9/arm9.elf k11_extension/k11_extension.elf \
-A 0x18180000 -C XDMA XDMA NDMA XDMA
@echo built... $(notdir $@)
boot.3dsx:
@curl -sSfLO "https://github.com/fincs/new-hbmenu/releases/latest/download/$@"
hbmenu.zip:
@curl -sSfL $(shell curl -s https://api.github.com/repos/devkitPro/3ds-hbmenu/releases/latest | grep 'browser_' | cut -d\" -f4) -o $@
@echo downloaded... $(notdir $@)
$(SUBFOLDERS):