File: create_icon.sh

package info (click to toggle)
gpodder 3.11.3-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 5,272 kB
  • sloc: python: 19,713; sh: 574; xml: 122; makefile: 112
file content (16 lines) | stat: -rw-r--r-- 415 bytes parent folder | download | duplicates (8)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/bin/bash
cd work/gpodder-2.3

# create temporary directory
mkdir tmpdir

# create raster images for the icons
for i in 32 48 128
do rsvg -w $i -h $i data/gpodder.svg tmpdir/gpodder-$i.png
done

# get the small one
cp data/icons/16/gpodder.png tmpdir/gpodder-16.png

# create the icns file (thanks to the icnsutils library http://icns.sourceforge.net/)
png2icns tmpdir/icon.icns tmpdir/gpodder-{16,32,48,128}.png