-
Notifications
You must be signed in to change notification settings - Fork 812
/
centos-package.sh
51 lines (42 loc) · 1.49 KB
/
centos-package.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
49
50
51
# compile
mkdir ../WizQTClient-Release-Linux
rm -rf ../WizQTClient-Release-Linux/*
cd ../WizQTClient-Release-Linux
cmake -DWIZNOTE_USE_QT5=NO -DCMAKE_BUILD_TYPE=Release ../WizQTClient -DQT_QMAKE_EXECUTABLE=/usr/local/Trolltech/Qt-4.8.6/bin/qmake && \
make -j5
cd ..
rm -rf WizNote
mkdir WizNote
cd WizNote
mkdir bin
cd bin
cp ../../WizQTClient-Release-Linux/bin/WizNote ./
cp /usr/local/Trolltech/Qt-4.8.6/lib/libQtWebKit.so.4 ./
cp /usr/local/Trolltech/Qt-4.8.6/lib/libQtGui.so.4 ./
cp /usr/local/Trolltech/Qt-4.8.6/lib//libQtXml.so.4 ./
cp /usr/local/Trolltech/Qt-4.8.6/lib/libQtNetwork.so.4 ./
cp /usr/local/Trolltech/Qt-4.8.6/lib/libQtCore.so.4 ./
cp /usr/local/Trolltech/Qt-4.8.6/lib/libQtXmlPatterns.so.4 ./
cp ../../WizQTClient-Release-Linux/lib/wiznote/plugins/libextensionsystem.so ./
cp ../../WizQTClient-Release-Linux/lib/wiznote/plugins/libaggregation.so ./
cp ../../WizQTClient-Release-Linux/lib/wiznote/plugins/libCore.so ./
cp ../../WizQTClient-Release-Linux/lib/wiznote/plugins/libMarkDown.so ./
cp ../../WizQTClient-Release-Linux/lib/wiznote/plugins/libHelloWorld.so ./
cd ..
mkdir lib
cd lib
mkdir wiznote
cd wiznote
mkdir plugins
cd plugins
cp ../../../../WizQTClient-Release-Linux/lib/wiznote/plugins/MarkDown.pluginspec ./
cp ../../../../WizQTClient-Release-Linux/lib/wiznote/plugins/Core.pluginspec ./
cd ..
cd ..
cd ..
cp -R ../WizQTClient-Release-Linux/share ./
#cp ../WizQTClient/start-WizNote.sh ./
ln -s bin/WizNote WizNote
cd ..
rm ./WizNote.tar.gz
tar -zcvf ./WizNote.tar.gz WizNote