diff --git a/.gitarchiveinclude b/.gitarchiveinclude index a65677f..3db3e04 100644 --- a/.gitarchiveinclude +++ b/.gitarchiveinclude @@ -1,2 +1,6 @@ +bin/minui-keyboard-tg5040 +bin/minui-keyboard-rg35xxplus +bin/minui-list-tg5040 +bin/minui-list-rg35xxplus bin/sdl2imgshow res/fonts/BPreplayBold.otf diff --git a/Makefile b/Makefile index ae57eed..f4e63fe 100644 --- a/Makefile +++ b/Makefile @@ -2,11 +2,26 @@ TAG ?= latest BUILD_DATE := "$(shell date -u +%FT%TZ)" PAK_NAME := $(shell jq -r .label config.json) +PLATFORMS := tg5040 rg35xxplus +MINUI_LIST_VERSION := 0.3.1 +MINUI_KEYBOARD_VERSION := 0.2.1 + clean: + rm -f bin/minui-keyboard-* || true + rm -f bin/minui-list-* || true + rm -f bin/screenshot-monitor || true rm -f bin/sdl2imgshow || true rm -f res/fonts/BPreplayBold.otf || true -build: bin/sdl2imgshow res/fonts/BPreplayBold.otf +build: $(foreach platform,$(PLATFORMS),bin/minui-keyboard-$(platform) bin/minui-list-$(platform) bin/screenshot-monitor) bin/sdl2imgshow res/fonts/BPreplayBold.otf + +bin/minui-keyboard-%: + curl -f -o bin/minui-keyboard-$* -sSL https://github.com/josegonzalez/minui-keyboard/releases/download/$(MINUI_KEYBOARD_VERSION)/minui-keyboard-$* + chmod +x bin/minui-keyboard-$* + +bin/minui-list-%: + curl -f -o bin/minui-list-$* -sSL https://github.com/josegonzalez/minui-list/releases/download/$(MINUI_LIST_VERSION)/minui-list-$* + chmod +x bin/minui-list-$* bin/sdl2imgshow: docker buildx build --platform linux/arm64 --load -f Dockerfile.sdl2imgshow --progress plain -t app/sdl2imgshow:$(TAG) .