reduce icon set size to fit iconutil limits

This commit is contained in:
Justin Li 2018-03-30 22:57:34 -07:00
parent ce85382c68
commit 71f84b1023

View File

@ -34,7 +34,7 @@ def render(output, sz=256):
iname = 'icon_{0}x{0}.png'.format(sz)
iname2x = 'icon_{0}x{0}@2x.png'.format(sz // 2)
render(iname, sz)
if sz > 16:
if sz > 16 and sz != 128:
shutil.copy2(iname, iname2x)
if sz > 512:
if sz in (64, 1024):
os.remove(iname)