4 $ErrorActionPreference="Stop"
6 Import-Module $env:APPVEYOR_BUILD_FOLDER\scripts\build\appveyorHelp.psm1
8 Init @("ninja", "png2ico", "nsis", "7zip.commandline") ([ordered]@{"git://anongit.kde.org/extra-cmake-modules.git" = @{"branch" = "master"};
9 "https://github.com/Snorenotify/SnoreGrowl.git" = @{"branch" = "v0.4.0"; "buildType" = "Release"};
10 "git://anongit.kde.org/snorenotify.git" = @{"branch" = "v0.7.0"; "buildType" = "Release"}})
13 mkdir -Force $env:APPVEYOR_BUILD_FOLDER\work\build\$env:APPVEYOR_PROJECT_NAME
14 cd $env:APPVEYOR_BUILD_FOLDER\work\build\$env:APPVEYOR_PROJECT_NAME
16 $webPrevOption = "-DWITH_WEBKIT=OFF -DWITH_WEBENGINE=ON"
18 "bin\\Qt5Positioning\.dll",
19 "bin\\Qt5PrintSupport\.dll",
20 "bin\\Qt5Sensors\.dll",
21 "bin\\Qt5WebChannel\.dll",
22 "bin\\QtWebEngineProcess\.exe",
23 "bin\\Qt5WebEngine\.dll",
24 "bin\\Qt5WebEngineCore\.dll",
25 "bin\\Qt5WebEngineWidgets\.dll",
26 "resources\\icudtl\.dat",
27 "resources\\qtwebengine_resources.pak",
28 "resources\\qtwebengine_resources_100p.pak",
29 "resources\\qtwebengine_resources_200p.pak")
31 if($env:COMPILER -eq "mingw49_32") {
32 $webPrevOption = "-DWITH_WEBKIT=OFF -DWITH_WEBENGINE=OFF"
36 LogExec cmake -G"Ninja" $env:APPVEYOR_BUILD_FOLDER -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX="$CMAKE_INSTALL_ROOT" -DUSE_QT5=ON -DWITH_BREEZE=ON -DWITH_BREEZE_DARK=ON -DWITH_OXYGEN=ON $webPrevOption
45 "bin\\libgomp.*\.dll",
46 "bin\\libgcc_s_.*\.dll",
47 "bin\\libwinpthread.*\.dll",
48 "bin\\libstdc.*\.dll",
51 "bin\\.*snore.*\.dll",
52 "lib\\plugins\\libsnore.*\\libsnore_backend.*\.dll",
53 "lib\\plugins\\libsnore.*\\libsnore_settings_backend.*\.dll",
54 "lib\\plugins\\libsnore.*\\libsnore_secondarybackend.*\.dll", "lib\\plugins\\libsnore.*\\libsnore_settings_secondarybackend.*\.dll", "bin\\SnoreToast\.exe",
57 "bin\\.*snoregrowl.*\.dll",
70 "bin\\Qt5Declarative\.dll",
72 "bin\\Qt5Network\.dll",
73 "bin\\Qt5Opengl\.dll",
74 "bin\\Qt5Multimedia\.dll",
75 "bin\\Qt5MultimediaWidgets\.dll",
78 "bin\\Qt5Script\.dll",
81 "bin\\Qt5WebChannel\.dll",
82 "bin\\Qt5Widgets\.dll",
84 "bin\\Qt5XmlPatterns\.dll",
85 "bin\\.*libglesv2\.dll",
90 "plugins\\imageformats\\(?!.*d\.dll).*\.dll$",
91 "plugins\\sqldrivers\\qsqlite(?!.*d\.dll).*\.dll$",
92 "plugins\\codecs\\(?!.*d\.dll).*\.dll$",
93 "plugins\\platforms\\qwindows(?!.*d\.dll).*\.dll$",
94 "plugins\\iconengines\\(?!.*d\.dll).*\.dll$",
101 "bin\\libqca.*\.dll",
102 "lib\\qca-qt5\\crypto\\.*",
106 "bin\\libphonon.*\.dll",
107 "bin\\phonon.*\.dll",
108 "bin\\libphononexperimental.*\.dll",
109 "bin\\phonon_backend\\.*",
110 "plugins\\phonon_backend\\.*",
111 "plugins\\phonon4qt5_backend\\.*")
113 $whitelist += $webPrevFiles
115 $imageDir = CreateDeployImage $whitelist @(
119 "lib\\plugins\\libsnore.*\\libsnore_backend_freedesktop\.dll",
124 mv "$imageDir\bin\*" "$imageDir\"
125 #mv "$imageDir\lib\qca-qt5\crypto" "$imageDir\crypto"
126 mv "$imageDir\qml\*" "$imageDir"
127 mv "$imageDir\plugins\*" "$imageDir"
128 if(Test-Path "$imageDir\lib\plugins")
130 mv "$imageDir\lib\plugins\*" "$imageDir"
132 if(Test-Path "$imageDir\resources")
134 mv "$imageDir\resources\*" "$imageDir"
136 DeleteEmptyFodlers $imageDir
138 NsisDeployImage $env:APPVEYOR_BUILD_FOLDER\scripts\build\NullsoftInstaller.nsi
145 - COMPILER: msvc2015_64
149 - COMPILER: mingw53_32
154 - work\install -> appveyor.yml
155 - C:\ProgramData\chocolatey\bin -> appveyor.yml
156 - C:\ProgramData\chocolatey\lib -> appveyor.yml