From 6bdeb51d873e1f9fc96d3aa1d3cc44eeb2cbe901 Mon Sep 17 00:00:00 2001 From: mhutti1 Date: Sat, 6 Aug 2016 10:42:02 +0100 Subject: [PATCH] Custom android apps display their logo as splash screen #271 --- gen-custom-android-build.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/gen-custom-android-build.py b/gen-custom-android-build.py index bee74f688..bf39b235e 100755 --- a/gen-custom-android-build.py +++ b/gen-custom-android-build.py @@ -241,7 +241,13 @@ def step_prepare_launcher_icons(jsdata, **options): outf=os.path.join(ANDROID_PATH, 'res', 'mipmap-{}'.format(density), 'kiwix_icon.png'))) - + + syscall("convert {inf} -resize {p}x{p} {outf}" + .format(inf=os.path.join(ANDROID_PATH, 'ic_launcher_512.png'), + p=256, + outf=os.path.join(ANDROID_PATH, 'res', + 'drawable', + 'splash_screen.png'))) def step_update_branding_xml(jsdata, **options): ''' change app_name value in branding.xml '''