4 if ( !(Test-Path "$env:APPVEYOR_BUILD_FOLDER\work\appveyorHelp.psm1"))
6 mkdir $env:APPVEYOR_BUILD_FOLDER\work\
7 Start-FileDownload https://raw.githubusercontent.com/TheOneRing/appVeyorHelp/master/appveyorHelp.psm1 -FileName $env:APPVEYOR_BUILD_FOLDER\work\appveyorHelp.psm1
9 $ErrorActionPreference="Stop"
11 Import-Module $env:APPVEYOR_BUILD_FOLDER\work\appveyorHelp.psm1
13 Init @("ninja", "png2ico", "nsis", "7zip.commandline") ([ordered]@{"git://anongit.kde.org/extra-cmake-modules.git" = @{"branch" = "master"};
14 "https://github.com/Snorenotify/SnoreGrowl.git" = @{"branch" = "v0.4.0"; "buildType" = "Release"};
15 "git://anongit.kde.org/snorenotify.git" = @{"branch" = "v0.7.0"; "buildType" = "Release"}})
18 mkdir -Force $env:APPVEYOR_BUILD_FOLDER\work\build\$env:APPVEYOR_PROJECT_NAME
19 cd $env:APPVEYOR_BUILD_FOLDER\work\build\$env:APPVEYOR_PROJECT_NAME
20 LogExec cmake -G"Ninja" $env:APPVEYOR_BUILD_FOLDER -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX="$CMAKE_INSTALL_ROOT" -DUSE_QT5=ON -DCMAKE_DISABLE_FIND_PACKAGE_Qt5DBus=ON -DWITH_WEBKIT=OFF
23 $imageDir = CreateDeployImage @(
29 "bin\\libgomp.*\.dll",
30 "bin\\libgcc_s_.*\.dll",
31 "bin\\libwinpthread.*\.dll",
32 "bin\\libstdc.*\.dll",
35 "bin\\.*snore.*\.dll",
36 "lib\\plugins\\libsnore.*\\libsnore_backend.*\.dll",
37 "lib\\plugins\\libsnore.*\\libsnore_settings_backend.*\.dll",
38 "lib\\plugins\\libsnore.*\\libsnore_secondarybackend.*\.dll", "lib\\plugins\\libsnore.*\\libsnore_settings_secondarybackend.*\.dll", "bin\\SnoreToast\.exe",
41 "bin\\.*snoregrowl.*\.dll",
54 "bin\\Qt5Declarative\.dll",
56 "bin\\Qt5Network\.dll",
57 "bin\\Qt5Opengl\.dll",
58 "bin\\Qt5Multimedia\.dll",
59 "bin\\Qt5MultimediaWidgets\.dll",
62 "bin\\Qt5Script\.dll",
64 "bin\\Qt5Widgets\.dll",
65 "bin\\Qt5XmlPatterns\.dll",
66 "bin\\.*libglesv2\.dll",
71 "plugins\\imageformats\\(?!.*d\.dll).*\.dll$",
72 "plugins\\sqldrivers\\qsqlite(?!.*d\.dll).*\.dll$",
73 "plugins\\codecs\\(?!.*d\.dll).*\.dll$",
74 "plugins\\platforms\\qwindows(?!.*d\.dll).*\.dll$",
82 "lib\\qca-qt5\\crypto\\.*",
86 "bin\\libphonon.*\.dll",
88 "bin\\libphononexperimental.*\.dll",
89 "bin\\phonon_backend\\.*",
90 "plugins\\phonon_backend\\.*",
91 "plugins\\phonon4qt5_backend\\.*") @(
95 "lib\\plugins\\libsnore.*\\libsnore_backend_freedesktop\.dll",
100 mv "$imageDir\bin\*" "$imageDir\"
101 #mv "$imageDir\lib\qca-qt5\crypto" "$imageDir\crypto"
102 mv "$imageDir\qml\*" "$imageDir"
103 mv "$imageDir\plugins\*" "$imageDir"
104 if(Test-Path "$imageDir\lib\plugins")
106 mv "$imageDir\lib\plugins\*" "$imageDir"
108 DeleteEmptyFodlers $imageDir
110 NsisDeployImage $env:APPVEYOR_BUILD_FOLDER\scripts\build\NullsoftInstaller.nsi
117 - COMPILER: msvc2013_64
120 - COMPILER: mingw492_32
125 - work\install -> appveyor.yml
126 - C:\ProgramData\chocolatey\bin -> appveyor.yml
127 - C:\ProgramData\chocolatey\lib -> appveyor.yml
128 - work\appveyorHelp.psm1 -> appveyor.yml