1 |
persson |
2145 |
#!/bin/sh -ex |
2 |
|
|
|
3 |
|
|
# This script is primarily made for the linuxsampler build server. It |
4 |
|
|
# copies all files to be included in the installer from the |
5 |
|
|
# installation directories on the build server to the bin directory. |
6 |
|
|
|
7 |
|
|
# win32 ----------------------------------------------------------- |
8 |
|
|
|
9 |
|
|
BIN=`pwd`/bin |
10 |
|
|
DIST=$BIN/686 |
11 |
|
|
WIN=/home/persson/win32 |
12 |
persson |
3011 |
MINGW=/home/persson/msys2/mingw32 |
13 |
persson |
2145 |
rm -rf $DIST |
14 |
|
|
mkdir -p $DIST |
15 |
|
|
cd $WIN/bin |
16 |
persson |
3007 |
cp rifftree.exe dlsdump.exe gigdump.exe gigextract.exe gigmerge.exe \ |
17 |
schoenebeck |
2686 |
gig2mono.exe gig2stereo.exe \ |
18 |
|
|
korg2gig.exe korgdump.exe akaidump.exe akaiextract.exe \ |
19 |
schoenebeck |
2782 |
sf2dump.exe sf2extract.exe \ |
20 |
schoenebeck |
2575 |
linuxsampler.exe \ |
21 |
persson |
2145 |
gigedit.exe \ |
22 |
|
|
liblscp-6.dll qsampler.exe \ |
23 |
|
|
$DIST |
24 |
persson |
3011 |
cd $MINGW/bin |
25 |
persson |
3007 |
cp libgcc_s_dw2-1.dll libwinpthread-1.dll libstdc++-6.dll \ |
26 |
|
|
libsndfile-1.dll libsqlite3-0.dll \ |
27 |
|
|
libFLAC-8.dll libogg-0.dll libvorbis-0.dll libvorbisenc-2.dll \ |
28 |
persson |
3010 |
libspeex-1.dll \ |
29 |
persson |
3011 |
Qt5Core.dll Qt5Gui.dll Qt5Widgets.dll libbz2-1.dll libfreetype-6.dll \ |
30 |
|
|
libglib-2.0-0.dll libgraphite2.dll libharfbuzz-0.dll libiconv-2.dll \ |
31 |
|
|
libicudt57.dll libicuin57.dll libicuuc57.dll libintl-8.dll \ |
32 |
|
|
libpcre-1.dll libpcre16-0.dll libpng16-16.dll zlib1.dll \ |
33 |
persson |
3007 |
$DIST |
34 |
persson |
3011 |
cd $MINGW/lib/pkgconfig |
35 |
persson |
3009 |
cp sndfile.pc $DIST |
36 |
persson |
3011 |
cd $DIST |
37 |
|
|
(cd $MINGW/share/qt5 ; \ |
38 |
|
|
tar cf - \ |
39 |
|
|
plugins/platforms/qwindows.dll) | tar xf - |
40 |
persson |
2145 |
cd $WIN/gtkmm/redist |
41 |
|
|
cp libatk-1.0-0.dll libatkmm-1.6-1.dll libcairo-2.dll \ |
42 |
|
|
libcairomm-1.0-1.dll libgdkmm-2.4-1.dll \ |
43 |
|
|
libgdk_pixbuf-2.0-0.dll libgdk-win32-2.0-0.dll \ |
44 |
persson |
3011 |
libgio-2.0-0.dll libgiomm-2.4-1.dll \ |
45 |
persson |
2145 |
libglibmm-2.4-1.dll libgmodule-2.0-0.dll \ |
46 |
|
|
libgobject-2.0-0.dll libgthread-2.0-0.dll \ |
47 |
|
|
libgtkmm-2.4-1.dll libgtk-win32-2.0-0.dll \ |
48 |
|
|
intl.dll jpeg62.dll libpango-1.0-0.dll \ |
49 |
|
|
libpangocairo-1.0-0.dll libpangomm-1.4-1.dll \ |
50 |
|
|
libpangowin32-1.0-0.dll libpng12-0.dll libsigc-2.0-0.dll \ |
51 |
persson |
3011 |
libtiff3.dll \ |
52 |
persson |
2145 |
$DIST |
53 |
|
|
cd $WIN/lib/bin |
54 |
schoenebeck |
2801 |
cp libgig-7.dll libakai-0.dll libgigedit-3.dll liblinuxsampler-4.dll $DIST |
55 |
persson |
2145 |
cp $WIN/lib/vst/LinuxSampler.dll $DIST |
56 |
|
|
mkdir -p $DIST/plugins |
57 |
|
|
cp $WIN/lib/linuxsampler/plugins/libgigeditlinuxsamplerplugin.dll \ |
58 |
|
|
$DIST/plugins |
59 |
|
|
cd $DIST |
60 |
|
|
(cd $WIN/gtkmm ; tar cf - \ |
61 |
|
|
etc/gtk-2.0/gtkrc \ |
62 |
|
|
etc/gtk-2.0/gdk-pixbuf.loaders \ |
63 |
|
|
lib/gtk-2.0/2.10.0/engines/libwimp.dll \ |
64 |
|
|
lib/gtk-2.0/2.10.0/loaders \ |
65 |
|
|
share/themes/MS-Windows \ |
66 |
|
|
share/locale/de/LC_MESSAGES/gtk20.mo \ |
67 |
|
|
share/locale/sv/LC_MESSAGES/gtk20.mo) | tar xf - |
68 |
|
|
(cd $WIN ; tar cf - \ |
69 |
|
|
share/locale/de/LC_MESSAGES/gigedit.mo \ |
70 |
|
|
share/locale/sv/LC_MESSAGES/gigedit.mo) | tar xf - |
71 |
|
|
cd $WIN/qt/bin |
72 |
persson |
3003 |
cp QtCore4.dll QtGui4.dll mingwm10.dll $DIST |
73 |
persson |
2145 |
cd $WIN/qt/translations |
74 |
|
|
cp qt_ru.qm qt_cs.qm $DIST/share/locale |
75 |
|
|
cd $WIN/share/locale |
76 |
|
|
cp qsampler_ru.qm qsampler_cs.qm $DIST/share/locale |
77 |
|
|
cd $WIN/share |
78 |
|
|
cp qsampler.version gigedit.version $DIST |
79 |
|
|
cd $WIN/lib/pkgconfig |
80 |
persson |
3009 |
cp gig.pc linuxsampler.pc $DIST |
81 |
persson |
2145 |
|
82 |
|
|
# win32sse -------------------------------------------------------- |
83 |
|
|
|
84 |
|
|
DIST=$BIN/686sse |
85 |
|
|
WIN=/home/persson/win32sse |
86 |
|
|
|
87 |
|
|
rm -rf $DIST |
88 |
|
|
mkdir -p $DIST |
89 |
|
|
cd $WIN/bin |
90 |
persson |
2605 |
cp rifftree.exe dlsdump.exe gigdump.exe gigextract.exe gigmerge.exe \ |
91 |
schoenebeck |
2686 |
gig2mono.exe gig2stereo.exe \ |
92 |
|
|
korg2gig.exe korgdump.exe akaidump.exe akaiextract.exe \ |
93 |
schoenebeck |
2782 |
sf2dump.exe sf2extract.exe linuxsampler.exe \ |
94 |
persson |
2145 |
$DIST |
95 |
|
|
cd $WIN/lib/bin |
96 |
schoenebeck |
2801 |
cp libgig-7.dll libakai-0.dll liblinuxsampler-4.dll $DIST |
97 |
persson |
2145 |
cp $WIN/lib/vst/LinuxSampler.dll $DIST |
98 |
|
|
|
99 |
|
|
|
100 |
|
|
# win64 ----------------------------------------------------------- |
101 |
|
|
|
102 |
|
|
DIST=$BIN/64 |
103 |
|
|
WIN=/home/persson/win64 |
104 |
|
|
|
105 |
|
|
rm -rf $DIST |
106 |
|
|
mkdir -p $DIST |
107 |
|
|
cd $WIN/bin |
108 |
persson |
2605 |
cp libsndfile-1.dll libsqlite3-0.dll \ |
109 |
persson |
2145 |
libFLAC-8.dll libogg-0.dll libvorbis-0.dll libvorbisenc-2.dll \ |
110 |
schoenebeck |
2489 |
rifftree.exe dlsdump.exe gigdump.exe gigextract.exe gigmerge.exe \ |
111 |
schoenebeck |
2686 |
gig2mono.exe gig2stereo.exe \ |
112 |
|
|
korg2gig.exe korgdump.exe akaidump.exe akaiextract.exe \ |
113 |
schoenebeck |
2782 |
sf2dump.exe sf2extract.exe \ |
114 |
schoenebeck |
2575 |
linuxsampler.exe gigedit.exe \ |
115 |
persson |
2145 |
$DIST |
116 |
|
|
cd $WIN/gtkmm/bin |
117 |
|
|
cp libatk-1.0-0.dll libatkmm-1.6-1.dll libcairo-2.dll \ |
118 |
|
|
libcairomm-1.0-1.dll libgdkmm-2.4-1.dll \ |
119 |
|
|
libgdk_pixbuf-2.0-0.dll libgdk-win32-2.0-0.dll \ |
120 |
|
|
libgio-2.0-0.dll libgiomm-2.4-1.dll libglib-2.0-0.dll \ |
121 |
|
|
libglibmm-2.4-1.dll libgmodule-2.0-0.dll \ |
122 |
|
|
libgobject-2.0-0.dll libgthread-2.0-0.dll \ |
123 |
|
|
libgtkmm-2.4-1.dll libgtk-win32-2.0-0.dll \ |
124 |
|
|
libintl-8.dll libpango-1.0-0.dll libfontconfig-1.dll \ |
125 |
|
|
libpangocairo-1.0-0.dll libpangomm-1.4-1.dll \ |
126 |
|
|
libpangowin32-1.0-0.dll libpng14-14.dll libsigc-2.0-0.dll \ |
127 |
|
|
zlib1.dll libexpat-1.dll libfreetype-6.dll \ |
128 |
|
|
libpangoft2-1.0-0.dll \ |
129 |
|
|
$DIST |
130 |
|
|
cd ../../.. |
131 |
|
|
mkdir -p $DIST/etc/gtk-2.0 |
132 |
|
|
echo "gtk-theme-name = \"MS-Windows\"" > $DIST/etc/gtk-2.0/gtkrc |
133 |
persson |
2279 |
cd mingw64/x86_64-w64-mingw32/lib |
134 |
persson |
2145 |
cp libgcc_s_sjlj-1.dll libstdc++-6.dll $DIST |
135 |
|
|
cd $WIN/lib/bin |
136 |
schoenebeck |
2801 |
cp libgig-7.dll libakai-0.dll libgigedit-3.dll liblinuxsampler-4.dll $DIST |
137 |
persson |
2145 |
cp $WIN/lib/vst/LinuxSampler.dll $DIST |
138 |
|
|
mkdir -p $DIST/plugins |
139 |
|
|
cp $WIN/lib/linuxsampler/plugins/libgigeditlinuxsamplerplugin.dll \ |
140 |
|
|
$DIST/plugins |
141 |
|
|
cd $DIST |
142 |
|
|
(cd $WIN/gtkmm ; tar cf - \ |
143 |
|
|
lib/gtk-2.0/2.10.0/engines/libwimp.dll \ |
144 |
|
|
share/themes/MS-Windows \ |
145 |
|
|
share/locale/de/LC_MESSAGES/gtk20.mo \ |
146 |
|
|
share/locale/sv/LC_MESSAGES/gtk20.mo) | tar xf - |
147 |
|
|
(cd $WIN ; tar cf - \ |
148 |
|
|
share/locale/de/LC_MESSAGES/gigedit.mo \ |
149 |
|
|
share/locale/sv/LC_MESSAGES/gigedit.mo) | tar xf - |
150 |
|
|
cd $DIST |
151 |
|
|
|
152 |
|
|
|
153 |
|
|
# Fantasia -------------------------------------------------------- |
154 |
|
|
|
155 |
|
|
cp /home/persson/share/java/Fantasia-0.9.jar $BIN |