-
Notifications
You must be signed in to change notification settings - Fork 4
/
deploy.sh
executable file
·141 lines (122 loc) · 3.41 KB
/
deploy.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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
#!/bin/bash
# (c) Andrey Streltsov <[email protected]>
# (c) ANSE 19 May 2015
DEPLOYMENT_PATH=deployment
DEPLOYMENT_TEST_ZIP=seafile-dist.zip
if [ ! -z $1 ] && [ $1 == "clean" ]; then
echo "Cleaning deployment folder"
if [ -d "./$DEPLOYMENT_PATH" ]; then
rm -rf $targetName
fi
if [ -e "./$DEPLOYMENT_TEST_ZIP" ]; then
rm -rf $DEPLOYMENT_TEST_ZIP
fi
exit 0
fi
# Files to copy
files="$PREFIX/bin/icudt54.dll
$PREFIX/bin/icuin54.dll
$PREFIX/bin/icuuc54.dll
$PREFIX/bin/libbz2.dll
$PREFIX/bin/libccnet-0.dll
$PREFIX/bin/libcurl-4.dll
$PREFIX/bin/libeay32.dll
$PREFIX/bin/libevent-2-0-5.dll
$PREFIX/bin/libffi-6.dll
$PREFIX/bin/libfreetype-6.dll
$PREFIX/bin/libgcc_s_sjlj-1.dll
$PREFIX/bin/libgcrypt-20.dll
$PREFIX/bin/libglib-2.0-0.dll
$PREFIX/bin/libgmp-10.dll
$PREFIX/bin/libgnutls-28.dll
$PREFIX/bin/libgobject-2.0-0.dll
$PREFIX/bin/libgpg-error-0.dll
$PREFIX/bin/libharfbuzz-0.dll
$PREFIX/bin/libhogweed-2-4.dll
$PREFIX/bin/libiconv-2.dll
$PREFIX/bin/libidn-11.dll
$PREFIX/bin/libintl-8.dll
$PREFIX/bin/libjansson-4.dll
$PREFIX/bin/libnettle-4-6.dll
$PREFIX/bin/libpcre-1.dll
$PREFIX/bin/libpcre16-0.dll
$PREFIX/bin/libpng16-16.dll
$PREFIX/bin/libseafile-0.dll
$PREFIX/bin/libsearpc-1.dll
$PREFIX/bin/libsqlite3-0.dll
$PREFIX/bin/libssh2-1.dll
$PREFIX/bin/libstdc++-6.dll
$PREFIX/bin/libwinpthread-1.dll
$PREFIX/bin/ssleay32.dll
$PREFIX/bin/zlib1.dll
$PREFIX/bin/libjpeg-9.dll
$PREFIX/bin/ccnet.exe
$PREFIX/bin/seaf-daemon.exe
$PREFIX/bin/seafile-applet.exe
$PREFIX/qt5/bin/Qt53D.dll
$PREFIX/qt5/bin/Qt53DQuick.dll
$PREFIX/qt5/bin/Qt5Bluetooth.dll
$PREFIX/qt5/bin/Qt5CLucene.dll
$PREFIX/qt5/bin/Qt5Concurrent.dll
$PREFIX/qt5/bin/Qt5Core.dll
$PREFIX/qt5/bin/Qt5DBus.dll
$PREFIX/qt5/bin/Qt5Declarative.dll
$PREFIX/qt5/bin/Qt5Gui.dll
$PREFIX/qt5/bin/Qt5Help.dll
$PREFIX/qt5/bin/Qt5Location.dll
$PREFIX/qt5/bin/Qt5Multimedia.dll
$PREFIX/qt5/bin/Qt5MultimediaWidgets.dll
$PREFIX/qt5/bin/Qt5Network.dll
$PREFIX/qt5/bin/Qt5Nfc.dll
$PREFIX/qt5/bin/Qt5OpenGL.dll
$PREFIX/qt5/bin/Qt5Positioning.dll
$PREFIX/qt5/bin/Qt5PrintSupport.dll
$PREFIX/qt5/bin/Qt5PublishSubscribe.dll
$PREFIX/qt5/bin/Qt5Qml.dll
$PREFIX/qt5/bin/Qt5Quick.dll
$PREFIX/qt5/bin/Qt5QuickParticles.dll
$PREFIX/qt5/bin/Qt5QuickTest.dll
$PREFIX/qt5/bin/Qt5QuickWidgets.dll
$PREFIX/qt5/bin/Qt5Script.dll
$PREFIX/qt5/bin/Qt5ScriptTools.dll
$PREFIX/qt5/bin/Qt5Sensors.dll
$PREFIX/qt5/bin/Qt5SerialPort.dll
$PREFIX/qt5/bin/Qt5ServiceFramework.dll
$PREFIX/qt5/bin/Qt5Sql.dll
$PREFIX/qt5/bin/Qt5Svg.dll
$PREFIX/qt5/bin/Qt5SystemInfo.dll
$PREFIX/qt5/bin/Qt5Test.dll
$PREFIX/qt5/bin/Qt5WebChannel.dll
$PREFIX/qt5/bin/Qt5WebKit.dll
$PREFIX/qt5/bin/Qt5WebKitWidgets.dll
$PREFIX/qt5/bin/Qt5WebSockets.dll
$PREFIX/qt5/bin/Qt5Widgets.dll
$PREFIX/qt5/bin/Qt5WinExtras.dll
$PREFIX/qt5/bin/Qt5Xlsx.dll
$PREFIX/qt5/bin/Qt5Xml.dll
$PREFIX/qt5/bin/Qt5XmlPatterns.dll"
# directories to copy
dirs="$PREFIX/qt5/plugins/imageformats/
$PREFIX/qt5/plugins/platforms/"
#resource files directory
resources="./seafile-client/i18n/*.qm"
if [ -d "$DEPLOYMENT_PATH" ]; then
rm -rf "$DEPLOYMENT_PATH"
fi
mkdir "$DEPLOYMENT_PATH"
for file in $files
do
cp $file "$DEPLOYMENT_PATH/"
done
for dir in $dirs
do
cp -r $dir "$DEPLOYMENT_PATH/"
done
cp $resources "$DEPLOYMENT_PATH/"
# prepeare installer ...
msitools/bin/wixl -v deployment.wxs
# test zipping
if [ -e "$DEPLOYMENT_TEST_ZIP" ]; then
rm "$DEPLOYMENT_TEST_ZIP"
fi
#zip -r $DEPLOYMENT_TEST_ZIP "$DEPLOYMENT_PATH"