From a362f9e5c7db48448c3c49320ecae53e7334d097 Mon Sep 17 00:00:00 2001 From: Neil Burrows Date: Sat, 27 Jun 2020 09:02:32 +0100 Subject: [PATCH] Only include supported languages in Build --- app.mk | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/app.mk b/app.mk index a5cc8ff9..75c0a3aa 100644 --- a/app.mk +++ b/app.mk @@ -47,6 +47,9 @@ ICON_SOURCE = icon-transparent.svg BANNER_SOURCE = banner-dark.svg OUTPUT_DIR = ./images +# Locales supported by Roku +SUPPORTED_LOCALES = en_US en_GB fr_CA es_ES de_DE it_IT pt_BR + ifdef ROKU_DEV_PASSWORD USERPASS = rokudev:$(ROKU_DEV_PASSWORD) else @@ -102,7 +105,11 @@ prep_staging: cp -r $(SOURCEREL)/source $(STAGINGREL) cp -r $(SOURCEREL)/components $(STAGINGREL) cp -r $(SOURCEREL)/images $(STAGINGREL) - cp -r $(SOURCEREL)/locale $(STAGINGREL) + + # Copy only supported languages over to staging + mkdir $(STAGINGREL)/locale + cp -r $(foreach f,$(SUPPORTED_LOCALES),$(SOURCEREL)/locale/$f) $(STAGINGREL)/locale + cp $(SOURCEREL)/manifest $(STAGINGREL)/manifest package: prep_staging