1 |
#!/bin/sh -ex |
#!/bin/bash -ex |
2 |
|
|
3 |
# This script is primarily made for the linuxsampler build server. It |
# This script is primarily made for the linuxsampler build server. It |
4 |
# copies all files to be included in the installer from the |
# copies all files to be included in the installer from the |
9 |
BIN=`pwd`/bin |
BIN=`pwd`/bin |
10 |
DIST=$BIN/686 |
DIST=$BIN/686 |
11 |
WIN=/home/persson/win32 |
WIN=/home/persson/win32 |
12 |
|
MINGW=/home/persson/msys2/mingw32 |
13 |
rm -rf $DIST |
rm -rf $DIST |
14 |
mkdir -p $DIST |
mkdir -p $DIST |
15 |
cd $WIN/bin |
cd $WIN/bin |
16 |
cp libgig-6.dll libsndfile-1.dll libsqlite3-0.dll \ |
cp rifftree.exe dlsdump.exe gigdump.exe gigextract.exe gigmerge.exe \ |
17 |
libFLAC-8.dll libogg-0.dll libvorbis-0.dll libvorbisenc-2.dll \ |
gig2mono.exe gig2stereo.exe \ |
18 |
rifftree.exe dlsdump.exe gigdump.exe gigextract.exe gigmerge.exe \ |
korg2gig.exe korgdump.exe akaidump.exe akaiextract.exe \ |
19 |
gig2mono.exe linuxsampler.exe \ |
sf2dump.exe sf2extract.exe \ |
20 |
|
linuxsampler.exe \ |
21 |
gigedit.exe \ |
gigedit.exe \ |
22 |
liblscp-6.dll qsampler.exe \ |
liblscp-6.dll qsampler.exe \ |
23 |
$DIST |
$DIST |
24 |
|
cd $MINGW/bin |
25 |
|
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 |
|
libspeex-1.dll \ |
29 |
|
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 |
|
$DIST |
34 |
|
cd $MINGW/lib/pkgconfig |
35 |
|
cp sndfile.pc $DIST |
36 |
|
cd $DIST |
37 |
|
(cd $MINGW/share/qt5 ; \ |
38 |
|
tar cf - \ |
39 |
|
plugins/platforms/qwindows.dll) | tar xf - |
40 |
cd $WIN/gtkmm/redist |
cd $WIN/gtkmm/redist |
41 |
cp libatk-1.0-0.dll libatkmm-1.6-1.dll libcairo-2.dll \ |
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 \ |
libcairomm-1.0-1.dll libgdkmm-2.4-1.dll \ |
43 |
libgdk_pixbuf-2.0-0.dll libgdk-win32-2.0-0.dll \ |
libgdk_pixbuf-2.0-0.dll libgdk-win32-2.0-0.dll \ |
44 |
libgio-2.0-0.dll libgiomm-2.4-1.dll libglib-2.0-0.dll \ |
libgio-2.0-0.dll libgiomm-2.4-1.dll \ |
45 |
libglibmm-2.4-1.dll libgmodule-2.0-0.dll \ |
libglibmm-2.4-1.dll libgmodule-2.0-0.dll \ |
46 |
libgobject-2.0-0.dll libgthread-2.0-0.dll \ |
libgobject-2.0-0.dll libgthread-2.0-0.dll \ |
47 |
libgtkmm-2.4-1.dll libgtk-win32-2.0-0.dll \ |
libgtkmm-2.4-1.dll libgtk-win32-2.0-0.dll \ |
48 |
intl.dll jpeg62.dll libpango-1.0-0.dll \ |
intl.dll jpeg62.dll libpango-1.0-0.dll \ |
49 |
libpangocairo-1.0-0.dll libpangomm-1.4-1.dll \ |
libpangocairo-1.0-0.dll libpangomm-1.4-1.dll \ |
50 |
libpangowin32-1.0-0.dll libpng12-0.dll libsigc-2.0-0.dll \ |
libpangowin32-1.0-0.dll libpng12-0.dll libsigc-2.0-0.dll \ |
51 |
libtiff3.dll zlib1.dll \ |
libtiff3.dll \ |
52 |
$DIST |
$DIST |
53 |
cd $WIN/lib/bin |
cd $WIN/lib/bin |
54 |
cp libgigedit-2.dll liblinuxsampler-3.dll $DIST |
cp libgig-7.dll libakai-0.dll libgigedit-3.dll liblinuxsampler-4.dll $DIST |
55 |
cp $WIN/lib/vst/LinuxSampler.dll $DIST |
cp $WIN/lib/vst/LinuxSampler.dll $DIST |
56 |
mkdir -p $DIST/plugins |
mkdir -p $DIST/plugins |
57 |
cp $WIN/lib/linuxsampler/plugins/libgigeditlinuxsamplerplugin.dll \ |
cp $WIN/lib/linuxsampler/plugins/libgigeditlinuxsamplerplugin.dll \ |
68 |
(cd $WIN ; tar cf - \ |
(cd $WIN ; tar cf - \ |
69 |
share/locale/de/LC_MESSAGES/gigedit.mo \ |
share/locale/de/LC_MESSAGES/gigedit.mo \ |
70 |
share/locale/sv/LC_MESSAGES/gigedit.mo) | tar xf - |
share/locale/sv/LC_MESSAGES/gigedit.mo) | tar xf - |
71 |
cd $WIN/qt/bin |
cd $MINGW/share/qt5/translations |
72 |
cp QtCore4.dll QtGui4.dll mingwm10.dll libgcc_s_dw2-1.dll $DIST |
cp qt{,base,script,quick1,multimedia,xmlpatterns}_{cs,ru}.qm $DIST/share/locale |
|
cd $WIN/qt/translations |
|
|
cp qt_ru.qm qt_cs.qm $DIST/share/locale |
|
73 |
cd $WIN/share/locale |
cd $WIN/share/locale |
74 |
cp qsampler_ru.qm qsampler_cs.qm $DIST/share/locale |
cp qsampler_{cs,ru}.qm $DIST/share/locale |
75 |
cd $WIN/share |
cd $WIN/share |
76 |
cp qsampler.version gigedit.version $DIST |
cp qsampler.version gigedit.version $DIST |
77 |
cd $WIN/lib/pkgconfig |
cd $WIN/lib/pkgconfig |
78 |
cp gig.pc linuxsampler.pc sndfile.pc $DIST |
cp gig.pc linuxsampler.pc $DIST |
79 |
|
|
80 |
# win32sse -------------------------------------------------------- |
# win32sse -------------------------------------------------------- |
81 |
|
|
85 |
rm -rf $DIST |
rm -rf $DIST |
86 |
mkdir -p $DIST |
mkdir -p $DIST |
87 |
cd $WIN/bin |
cd $WIN/bin |
88 |
cp libgig-6.dll \ |
cp rifftree.exe dlsdump.exe gigdump.exe gigextract.exe gigmerge.exe \ |
89 |
rifftree.exe dlsdump.exe gigdump.exe gigextract.exe gigmerge.exe \ |
gig2mono.exe gig2stereo.exe \ |
90 |
gig2mono.exe linuxsampler.exe \ |
korg2gig.exe korgdump.exe akaidump.exe akaiextract.exe \ |
91 |
|
sf2dump.exe sf2extract.exe linuxsampler.exe \ |
92 |
$DIST |
$DIST |
93 |
cd $WIN/lib/bin |
cd $WIN/lib/bin |
94 |
cp liblinuxsampler-3.dll $DIST |
cp libgig-7.dll libakai-0.dll liblinuxsampler-4.dll $DIST |
95 |
cp $WIN/lib/vst/LinuxSampler.dll $DIST |
cp $WIN/lib/vst/LinuxSampler.dll $DIST |
96 |
|
|
97 |
|
|
103 |
rm -rf $DIST |
rm -rf $DIST |
104 |
mkdir -p $DIST |
mkdir -p $DIST |
105 |
cd $WIN/bin |
cd $WIN/bin |
106 |
cp libgig-6.dll libsndfile-1.dll libsqlite3-0.dll \ |
cp libsndfile-1.dll libsqlite3-0.dll \ |
107 |
libFLAC-8.dll libogg-0.dll libvorbis-0.dll libvorbisenc-2.dll \ |
libFLAC-8.dll libogg-0.dll libvorbis-0.dll libvorbisenc-2.dll \ |
108 |
rifftree.exe dlsdump.exe gigdump.exe gigextract.exe gigmerge.exe \ |
rifftree.exe dlsdump.exe gigdump.exe gigextract.exe gigmerge.exe \ |
109 |
gig2mono.exe linuxsampler.exe gigedit.exe \ |
gig2mono.exe gig2stereo.exe \ |
110 |
|
korg2gig.exe korgdump.exe akaidump.exe akaiextract.exe \ |
111 |
|
sf2dump.exe sf2extract.exe \ |
112 |
|
linuxsampler.exe gigedit.exe \ |
113 |
$DIST |
$DIST |
114 |
cd $WIN/gtkmm/bin |
cd $WIN/gtkmm/bin |
115 |
cp libatk-1.0-0.dll libatkmm-1.6-1.dll libcairo-2.dll \ |
cp libatk-1.0-0.dll libatkmm-1.6-1.dll libcairo-2.dll \ |
131 |
cd mingw64/x86_64-w64-mingw32/lib |
cd mingw64/x86_64-w64-mingw32/lib |
132 |
cp libgcc_s_sjlj-1.dll libstdc++-6.dll $DIST |
cp libgcc_s_sjlj-1.dll libstdc++-6.dll $DIST |
133 |
cd $WIN/lib/bin |
cd $WIN/lib/bin |
134 |
cp libgigedit-2.dll liblinuxsampler-3.dll $DIST |
cp libgig-7.dll libakai-0.dll libgigedit-3.dll liblinuxsampler-4.dll $DIST |
135 |
cp $WIN/lib/vst/LinuxSampler.dll $DIST |
cp $WIN/lib/vst/LinuxSampler.dll $DIST |
136 |
mkdir -p $DIST/plugins |
mkdir -p $DIST/plugins |
137 |
cp $WIN/lib/linuxsampler/plugins/libgigeditlinuxsamplerplugin.dll \ |
cp $WIN/lib/linuxsampler/plugins/libgigeditlinuxsamplerplugin.dll \ |