Kiwix logo replaced by custom icon in the widget of custom apps

This commit is contained in:
fba 2016-12-22 03:50:49 +05:00
parent 31372a740b
commit 3be2fcc81d

View File

@ -241,6 +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=pixels,
outf=os.path.join(ANDROID_PATH, 'res',
'drawable-{}'.format(density),
'ic_kiwix_widget.png')))
syscall("convert {inf} -resize {p}x{p} {outf}"
.format(inf=os.path.join(ANDROID_PATH, 'ic_launcher_512.png'),