2 image: Visual Studio 2019
5 WIRESHARK_BASE_DIR: C:\wireshark-libs
7 # Note: if VS2017 win32 is added, just use Qt msvc2015 (binary compatible).
9 CMAKE_GENERATOR: Visual Studio 16 2019
10 QT5_BASE_DIR: C:\Qt\5.15\msvc2019_64
11 APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2019
14 - '%WIRESHARK_BASE_DIR%'
15 - C:\ProgramData\chocolatey\bin
16 - C:\ProgramData\chocolatey\lib
19 - choco install winflexbison
20 # Java is already installed, prevent an expensive upgrade (102 seconds).
21 - choco install --ignore-dependencies asciidoctorj docbook-bundle xsltproc
22 # Py2 fails the test_tshark_unicode_display_filter test, so use Py3.
23 - set PATH=C:\Python37-x64;C:\Python37-x64\Scripts;%PATH%
24 - pip install pytest pytest-xdist
25 - ps: New-Item -ItemType Directory -Force -Path $Env:WIRESHARK_BASE_DIR
26 - ps: | # For pkcs11 tests.
27 Invoke-WebRequest -Uri https://github.com/disig/SoftHSM2-for-Windows/releases/download/v2.5.0/SoftHSM2-2.5.0.msi -OutFile $Env:WIRESHARK_BASE_DIR\SoftHSM2-2.5.0.msi
28 & msiexec /qn /i $Env:WIRESHARK_BASE_DIR\SoftHSM2-2.5.0.msi
29 # https://help.appveyor.com/discussions/questions/18777-how-to-use-vcvars64bat-from-powershell
30 - ps: cmd.exe /c "call `"C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Auxiliary\Build\vcvars64.bat`" && set > %temp%\vcvars.txt"
31 - ps: Get-Content "$env:temp\vcvars.txt" | Foreach-Object { if ($_ -match "^(.*?)=(.*)$") { Set-Content "env:\$($matches[1])" $matches[2] } }
33 # Note: the NSIS installer lacks debug dlls for Debug builds.
34 configuration: RelWithDebInfo
38 project: build\Wireshark.sln
41 - python3 tools/make-version.py --set-release --untagged-version-extra=-{vcsinfo}-AppVeyor --tagged-version-extra=-AppVeyor
44 - cmake -E time cmake -DCMAKE_SYSTEM_VERSION=10.0.20348.0 -G "%CMAKE_GENERATOR%" ..
47 - msbuild /m wireshark_nsis_prep.vcxproj
48 - msbuild /m wireshark_nsis.vcxproj
49 # Publish installers only for development branches to avoid exceeding the
50 # artifact storage limit of 50 GB.
52 if ($Env:APPVEYOR_REPO_BRANCH -notlike "master*") {
53 Get-Item packaging\nsis\Wireshark-*.exe | % { Push-AppveyorArtifact $_.FullName -FileName $_.Name }
57 - msbuild /m test-programs.vcxproj
64 $Tshark = "run\\$Env:CONFIGURATION\\tshark.exe"
65 if (Test-Path $Tshark) { & $Tshark --version }