-
Notifications
You must be signed in to change notification settings - Fork 812
/
ubuntu-package.sh
executable file
·48 lines (40 loc) · 1.27 KB
/
ubuntu-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
# compile
mkdir ../WizQTClient-Release-Linux
rm -rf ../WizQTClient-Release-Linux/*
cd ../WizQTClient-Release-Linux
cmake -DWIZNOTE_USE_QT5=NO -DCMAKE_BUILD_TYPE=Release ../WizQTClient && \
make
cd ..
rm -rf WizNote
mkdir WizNote
cd WizNote
mkdir bin
cd bin
cp ../../WizQTClient-Release-Linux/bin/WizNote ./
cp /usr/lib/x86_64-linux-gnu/libQtWebKit.so.4 ./
cp /usr/lib/x86_64-linux-gnu/libQtGui.so.4 ./
cp /usr/lib/x86_64-linux-gnu//libQtXml.so.4 ./
cp /usr/lib/x86_64-linux-gnu/libQtNetwork.so.4 ./
cp /usr/lib/x86_64-linux-gnu/libQtCore.so.4 ./
cd ..
mkdir lib
cd lib
mkdir wiznote
cd wiznote
mkdir plugins
cd plugins
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/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