File: generate-icons.sh

package info (click to toggle)
nixnote2 2.1.6%2Bdfsg1-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 11,916 kB
  • sloc: cpp: 79,037; java: 1,096; sh: 275; ansic: 10; makefile: 6
file content (21 lines) | stat: -rwxr-xr-x 506 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/bin/bash
# convenience short cut

CD=`pwd`
cd resources/icons/hicolor

for S in 48 128 256 512; do
   echo "Creating ${S}px icon"
   inkscape -z -e ${S}x${S}/apps/nixnote2.png -w ${S} -h ${S} scalable/apps/nixnote2.svg
done

cd $CD

S=128
cp resources/icons/hicolor/${S}x${S}/apps/nixnote2.png resources/images/windowIcon.png
cp resources/icons/hicolor/${S}x${S}/apps/nixnote2.png resources/images/trayicon.png
cp resources/icons/hicolor/${S}x${S}/apps/nixnote2.png resources/images/splash_logo.png