diff options
| author | metamuffin <metamuffin@disroot.org> | 2024-09-30 20:35:36 +0200 |
|---|---|---|
| committer | metamuffin <metamuffin@disroot.org> | 2024-09-30 20:35:36 +0200 |
| commit | 3117ac777c38da483b22325d2bb9273684e31097 (patch) | |
| tree | 82ce19cc929e93fd9cd7eddfc0bdf487f1fb9eba /client/makefile | |
| parent | 7bdc4768872836dbd4d39ec395c1219334fe53ce (diff) | |
| download | hurrycurry-3117ac777c38da483b22325d2bb9273684e31097.tar hurrycurry-3117ac777c38da483b22325d2bb9273684e31097.tar.bz2 hurrycurry-3117ac777c38da483b22325d2bb9273684e31097.tar.zst | |
generate android icons
Diffstat (limited to 'client/makefile')
| -rw-r--r-- | client/makefile | 8 |
1 files changed, 7 insertions, 1 deletions
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 <https://www.gnu.org/licenses/>. # .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 $@ |