forked from mcallegari/qlcplus
-
Notifications
You must be signed in to change notification settings - Fork 0
/
appveyor.yml
62 lines (56 loc) · 2.41 KB
/
appveyor.yml
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
version: 4.11.3.{build}
environment:
MSYSTEM: MSYS
PATH: C:\msys64\mingw32\bin;C:\msys64\usr\bin;C:\Windows\System32;C:\Windows;%PATH%
QMAKESPEC: win32-g++
platform:
- x86
configuration:
- Release
install:
#- pacman --noconfirm -Sy
#- pacman --noconfirm --needed -S pacman-mirrors
#- pacman --noconfirm -Sy
- pacman --noconfirm --needed -S unzip mingw32/mingw-w64-i686-libmad mingw32/mingw-w64-i686-libsndfile mingw32/mingw-w64-i686-flac mingw32/mingw-w64-i686-fftw mingw32/mingw-w64-i686-nsis
- wget http://www.qlcplus.org/misc/mingw-w64-i686-qt5-5.6.2-4-any.pkg.tar.xz -P /c/projects
- pacman --noconfirm --needed -U /c/projects/mingw-w64-i686-qt5-5.6.2-4-any.pkg.tar.xz
build_script:
- ps: >-
bash -c @'
set -e
# stdin seems to be invalid on appveyor, so set it to null
exec 0</dev/null 2>&1
export
gcc -v
# get and prepare the D2XX SDK
mkdir -p /c/Qt/D2XXSDK
wget http://www.ftdichip.com/Drivers/CDM/CDM%20v2.12.24%20WHQL%20Certified.zip -O /c/Qt/D2XXSDK/cdm.zip
cd /c/Qt/D2XXSDK
unzip cdm.zip
cd i386
gendef.exe - ftd2xx.dll > ftd2xx.def
dlltool -k --input-def ftd2xx.def --dllname ftd2xx.dll --output-lib libftd2xx.a
cd /c/projects/qlcplus
# disable the test units, since we won't run them
sed -i -e 's/ SUBDIRS += test/#SUBDIRS += test/g' engine/engine.pro
sed -i -e 's/SUBDIRS += test/#SUBDIRS += test/g' ui/ui.pro
sed -i -e 's/ SUBDIRS += velleman/#SUBDIRS += velleman/g' plugins/plugins.pro
sed -i -e 's/ SUBDIRS += test/#SUBDIRS += test/g' plugins/artnet/artnet.pro
sed -i -e 's/SUBDIRS += test/#SUBDIRS += test/g' plugins/enttecwing/enttecwing.pro
sed -i -e 's/SUBDIRS += test/#SUBDIRS += test/g' plugins/midi/midi.pro
qmake FORCECONFIG=release
make
echo 'Silently installing QLC+...'
make install -s
cp *.qm /c/qlcplus
cd /c/qlcplus
sed -i -e 's/Qt/projects/g' qlcplus4Qt5.nsi
makensis -X'SetCompressor /FINAL lzma' qlcplus4Qt5.nsi
#set CURRDATE=`date +%Y%m%d`
mv QLC+_*.exe /c/projects/qlcplus/QLC+_$APPVEYOR_BUILD_VERSION.exe
ls /c/projects/qlcplus/*.exe
exit 0
'@
artifacts:
- path: QLC+_$(APPVEYOR_BUILD_VERSION).exe
name: qlcplus_4_11_3