aboutsummaryrefslogtreecommitdiff
path: root/client/makefile
diff options
context:
space:
mode:
Diffstat (limited to 'client/makefile')
-rw-r--r--client/makefile8
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 $@