forked from eranif/codelite
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcreate-logo-root.sh
executable file
·45 lines (35 loc) · 2.14 KB
/
create-logo-root.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
#!/bin/bash
filename=codelite-logo-root
mkdir -p ../bitmaps/osx/icon.iconset
os_name=`uname -s`
if [ "${os_name}" != "Darwin" ]; then
## 16x16 version
file=codelite-logo-low-res-root.svg
inkscape $file --without-gui --export-png=../bitmaps/16-${filename}.png --export-width=16 --export-height=16
inkscape $file --without-gui --export-png=../bitmaps/16-${filename}@2x.png --export-width=32 --export-height=32
## 24x24 version, not needed for OSX
inkscape $file --without-gui --export-png=../bitmaps/24-${filename}.png --export-width=24 --export-height=24
inkscape $file --without-gui --export-png=../bitmaps/24-${filename}@2x.png --export-width=48 --export-height=48
## 32x32 version
inkscape $file --without-gui --export-png=../bitmaps/32-${filename}.png --export-width=32 --export-height=32
inkscape $file --without-gui --export-png=../bitmaps/32-${filename}@2x.png --export-width=64 --export-height=64
## 64x64 version
inkscape $file --without-gui --export-png=../bitmaps/64-${filename}.png --export-width=64 --export-height=64
inkscape $file --without-gui --export-png=../bitmaps/64-${filename}@2x.png --export-width=128 --export-height=128
## 128x128 version
file=codelite-logo-root.svg
inkscape $file --without-gui --export-png=../bitmaps/128-${filename}.png --export-width=128 --export-height=128
inkscape $file --without-gui --export-png=../bitmaps/128-${filename}@2x.png --export-width=256 --export-height=256
## 256x256 version
inkscape $file --without-gui --export-png=../bitmaps/256-${filename}.png --export-width=256 --export-height=256
inkscape $file --without-gui --export-png=../bitmaps/256-${filename}@2x.png --export-width=512 --export-height=512
## 512x512 version
inkscape $file --without-gui --export-png=../bitmaps/512-${filename}.png --export-width=512 --export-height=512
inkscape $file --without-gui --export-png=../bitmaps/512-${filename}@2x.png --export-width=1024 --export-height=1024
fi
cd ../bitmaps
##
## Create a zip file named codelite-bitmaps.zip
##
rm -f ../Runtime/codelite-bitmaps.zip
zip ../Runtime/codelite-bitmaps.zip *.png