From 3117ac777c38da483b22325d2bb9273684e31097 Mon Sep 17 00:00:00 2001 From: metamuffin Date: Mon, 30 Sep 2024 20:35:36 +0200 Subject: generate android icons --- client/makefile | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'client/makefile') diff --git a/client/makefile b/client/makefile index c992372d..b7524ff0 100644 --- a/client/makefile +++ b/client/makefile @@ -14,7 +14,7 @@ # along with this program. If not, see . # .PHONY: assets clean all locales -all: assets locales +all: assets locales icons/adaptive-background.png icons/adaptive-foreground.png assets: menu/book/book_01.webp locales: $(patsubst ../locale/%.ini,po/%.po,$(wildcard ../locale/*.ini)) @@ -22,6 +22,7 @@ LT = ../target/release/localetool clean: rm -f menu/book/book_*.webp + rm -f icons/adaptive-foreground.png icons/adaptive-background.png menu/book/book_01.webp: @echo Downloading recipe book... @@ -38,3 +39,8 @@ po/locales.csv: $(LT) po/%.po: ../locale/%.ini $(LT) ../locale/en.ini @mkdir -p po $(LT) export-po $< $@ --fallback ../locale/en.ini + +icons/adaptive-background.png: + ffmpeg -f lavfi -i "color=color=#E28142,scale=432x432" -frames:v 1 -y $@ +icons/adaptive-foreground.png: icons/main.png + ffmpeg -f image2 -i $< -vf "scale=280x280,pad=432:432:(ow-iw)/2:(oh-ih)/2:0x00000000" -frames:v 1 -y $@ -- cgit v1.2.3-70-g09d2