@@ -13,13 +13,9 @@ clone_depth: 3 # clone entire repository history if not def
1313# configuration: Release
1414# build cache to preserve files/folders between builds
1515cache :
16- - dependencies.7z
17- - C:\Qt\Tools\mingw491_32\lib
18- - C:\Qt\Tools\mingw491_32\i686-w64-mingw32
19- - C:\Program Files (x86)\Jack
20- - C:\Qt\Tools\mingw491_32\libexec\gcc\i686-w64-mingw32\4.9.1\cc1plus.exe
21- - C:\MuseScore\build.release\thirdparty
22- - C:\ccache
16+ - dependencies.7z -> appveyor.yml
17+ - C:\Program Files (x86)\Jack -> appveyor.yml
18+ - C:\MuseScore\build.release\thirdparty -> appveyor.yml
2319# cache:
2420# - packages -> **\packages.config # preserve "packages" directory in the root of build folder but will reset it if packages.config is modified
2521# - projectA\libs
@@ -30,30 +26,34 @@ platform:
3026 - x86
3127# build Configuration, i.e. Debug, Release, etc.
3228configuration : Release
29+ # Update msys2
30+ install :
31+ - C:\msys64\usr\bin\bash -lc "pacman --needed --noconfirm -Sy pacman-mirrors"
32+ - C:\msys64\usr\bin\bash -lc "pacman --noconfirm -Sy"
33+ - C:\msys64\usr\bin\bash -lc "pacman --noconfirm -Sy make mingw-w64-i686-cmake mingw-w64-i686-lame mingw-w64-i686-libsndfile mingw-w64-i686-libvorbis mingw-w64-i686-portaudio mingw-w64-i686-qt5"
34+ # mingw-w64-i686-gcc mingw-w64-i686-cmake make
3335# scripts to run before build
3436before_build :
3537 - IF NOT EXIST dependencies.7z (
3638 start " " /wait "C:\MinGW\msys\1.0\bin\wget" --no-check-certificate "https://drive.google.com/uc?export=download&id=0BxjayMZiuupOSXF6a0ZDUG5rNDg" -O dependencies.7z &&
3739 start " " /wait "7z" x -y dependencies.7z > nul &&
3840 cd dependencies &&
39- xcopy i686-w64-mingw32 "C:\Qt\Tools\mingw491_32\i686-w64-mingw32" /E &&
40- xcopy lib "C:\Qt\Tools\mingw491_32\lib" /E &&
41- xcopy Jack "C:\Program Files (x86)\Jack" /E /I &&
42- xcopy ccache "C:\ccache" /E /I &&
43- copy /y cc1plus.exe "C:\Qt\Tools\mingw491_32\libexec\gcc\i686-w64-mingw32\4.9.1\cc1plus.exe"
41+ xcopy Jack "C:\Program Files (x86)\Jack" /E /I
4442 )
4543 - cd C:\MuseScore
46- - set PATH=C:\Qt\5.4\mingw491_32\bin;C:\Qt\Tools\mingw491_32\bin;%PATH%
47- - mingw32-make -f Makefile.mingw revision
44+ - set PATH=C:\msys64\mingw32\bin;C:\msys64\usr\bin;C:\msys64\bin;%PATH%
45+ - set MSYSTEM=MINGW32
46+ - C:\msys64\usr\bin\bash -lc "cd /c/MuseScore && mingw32-make -f Makefile.msys revision"
4847 # CMake refuses to generate MinGW Makefiles if sh.exe is in the Path
49- - set PATH=C:\Qt\5.4\mingw491_32\bin;C:\Qt\Tools\mingw491_32\bin;C:\Program Files (x86)\CMake\bin;C:\Program Files\7-Zip;C:\ccache\bin
50- - set CCACHE_DIR =C:\ccache\cache
48+ # - set PATH=C:\Qt\5.4\mingw491_32\bin;C:\Qt\Tools\mingw491_32\bin;C:\Program Files (x86)\CMake\bin;C:\Program Files\7-Zip;C:\ccache\bin
49+ - set PATH =C:\msys64\mingw32\bin;C:\msys64\usr\bin;C:\msys64\bin;C:\Program Files\7-Zip
5150 - set /p MSversion=<mscore\revision.h
51+ # Ugly hack to prevent the error: add_library cannot create imported target "Qt5::Q...Factory" because another target with the same name already exists.
52+ - copy /y NUL C:\msys64\mingw32\lib\cmake\Qt5Qml\Qt5QmlConfigExtras.cmake
5253# scripts to run *after* solution is built and *before* automatic packaging occurs (web apps, NuGet packages, Azure Cloud Services)
5354# before_package:
5455# scripts to run after build
5556after_build :
56- - ccache.exe -s
5757 - cmd : 7z a C:\MuseScore\MuseScoreTest%MSversion%.7z C:\MuseScore\win32install
5858 - cd C:\MuseScore
5959artifacts :
@@ -71,4 +71,4 @@ deploy:
7171 override : true
7272# to run your custom scripts instead of automatic MSBuild
7373build_script :
74- - mingw32-make -f Makefile.mingw release && mingw32-make -f Makefile.mingw install
74+ - C:\msys64\usr\bin\bash -lc "cd /c/MuseScore && mingw32-make -f Makefile.msys release && mingw32-make -f Makefile.msys install"
0 commit comments