diff --git a/.gitignore b/.gitignore index e5c172f3..200c9d8b 100644 --- a/.gitignore +++ b/.gitignore @@ -21,3 +21,4 @@ exceptions/arm11/build .settings Luma3DS*.zip +hbmenu.zip diff --git a/Makefile b/Makefile index 42811f96..60f5bb66 100644 --- a/Makefile +++ b/Makefile @@ -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):