forked from WizTeam/WizQTClient
-
Notifications
You must be signed in to change notification settings - Fork 0
/
linux-package.sh
executable file
·45 lines (37 loc) · 1.04 KB
/
linux-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
# 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 -j5
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 ./
cd ..
cd ..
cd ..
cp -R ../WizQTClient-Release-Linux/share ./
#cp ../WizQTClient/start-WizNote.sh ./
ln -s bin/WizNote WizNote
cd ..
rm -f ./WizNote.tar.gz
tar -zcvf ./WizNote.tar.gz WizNote