-
Notifications
You must be signed in to change notification settings - Fork 0
/
deploy.windows.sh
37 lines (33 loc) · 1.15 KB
/
deploy.windows.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
#!/bin/bash
BUILD_DIR=build_release
DEPLOY_DIR=dist
FULL_DEPLOY_DIR=dist-full
rm -rf $BUILD_DIR/
mkdir $BUILD_DIR/
rm -rf $DEPLOY_DIR/
mkdir $DEPLOY_DIR/
rm -rf $FULL_DEPLOY_DIR/
pushd $BUILD_DIR/
lrelease ../GUI/LoopMID2LoopOGG.pro
qmake ../GUI/LoopMID2LoopOGG.pro -spec win32-g++ -config release
mingw32-make -j8
popd
pushd $DEPLOY_DIR/
cp ../$BUILD_DIR/release/LoopMID2LoopOGG.exe ./
windeployqt --release LoopMID2LoopOGG.exe
rm -rf iconengines/ imageformats/ styles/ translations/
rm D3Dcompiler_47.dll Qt5Svg.dll
popd
cp -t $DEPLOY_DIR/ LICENSE LICENSE.gplv2 LICENSE.lgplv3 LICENSE.libogg LICENSE.libvorbis LICENSE.midifile
cp ./README.md $DEPLOY_DIR/README.txt
cp ./LICENSE.SGM $DEPLOY_DIR/LICENSE.SGM.txt
cp -r ./external-resources/timidity-twsynth-CVS081206/ $DEPLOY_DIR/
mv $DEPLOY_DIR/timidity-twsynth-CVS081206/ $DEPLOY_DIR/TiMidity++/
cp -r ./external-resources/qaac/ $DEPLOY_DIR/
cp ./external-resources/oggenc2.exe $DEPLOY_DIR/
if [[ $1 == "full" ]]; then
cp -r $DEPLOY_DIR/ $FULL_DEPLOY_DIR
cp -r ./external-resources/cfg/ $FULL_DEPLOY_DIR/
mv $FULL_DEPLOY_DIR/cfg/ $FULL_DEPLOY_DIR/sf2/
cp ./external-resources/SGM-V2.01.sf2 $FULL_DEPLOY_DIR/sf2/
fi