forked from sialan-labs/sigram
-
Notifications
You must be signed in to change notification settings - Fork 59
/
resourceMaker.sh
executable file
·48 lines (38 loc) · 1.07 KB
/
resourceMaker.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
46
47
48
#! /bin/sh
# Set the home if not already set.
if [ "${ASEMAN_SRC_PATH}" = "" ]; then
ASEMAN_SRC_PATH="`echo $0 | grep ^/`"
if [ "$ASEMAN_SRC_PATH" = "" ]; then
ASEMAN_SRC_PATH="$PWD"/"$0"
fi
cd `dirname $ASEMAN_SRC_PATH`
ASEMAN_SRC_PATH=$PWD
cd -
fi
cd $ASEMAN_SRC_PATH
FILES=`find . -name "*.qml" -o -name "*.js" -o -name "*.ttf" -o -name "*.jpg" -o -name "qmldir" -o -name "*.txt" -o -name "*.ogg"`
echo "<RCC>
<qresource prefix=\"/\">
<file>inputs/images/Salvador.png</file>
<file>messages/files/default_background.png</file>
<file>toolkit/files/systray-dark.png</file>
<file>toolkit/files/systray.png</file>
<file>images/icon.png</file>" > resource.qrc
for FILE in $FILES
do
echo " <file>$FILE</file>" >> resource.qrc
done
echo " </qresource>
</RCC>
" >> resource.qrc
cd "emojis"
FILES=`find . -name "*.png"`
echo "<RCC>
<qresource prefix=\"/emojis\">" > emojis.qrc
for FILE in $FILES
do
echo " <file>$FILE</file>" >> emojis.qrc
done
echo " </qresource>
</RCC>
" >> emojis.qrc