Build vicc.exe on AppVeyor

This commit is contained in:
Frank Morgner
2017-11-27 20:59:52 +01:00
parent 21a0d0cf48
commit 7059778c26

View File

@@ -10,12 +10,12 @@ install:
If ($env:Platform -Match "x86") {
$env:MSBUILD_PLATFORM="x86"
$env:VCVARS_PLATFORM="x86"
$env:ARTIFACT="vpcd_win32"
$env:ARTIFACT="virtualsmartcard_win32"
$env:X64=""
} Else {
$env:MSBUILD_PLATFORM="x64"
$env:VCVARS_PLATFORM="amd64"
$env:ARTIFACT="vpcd_win64"
$env:ARTIFACT="virtualsmartcard_win64"
$env:X64="x64\"
}
- git submodule update --init --recursive
@@ -23,6 +23,18 @@ install:
# BUGFIX: wdf directory was renamed to 00wdf, rename it back (see github.com/appveyor/ci/issues/414)
- ps: ren 'C:\Program Files (x86)\Windows Kits\10\include\00wdf' 'wdf'
- choco install swig
- python -m pip install --upgrade pip
- pip install virtualenv
- pip install -U setuptools
- easy_install PyCrypto
- pip install pbkdf2
- pip install Pillow
- pip install pyreadline
- pip install pyscard
- pip install pyinstaller
- set PATH=C:\cygwin\bin;%PATH%
# set Visual Studio 2015 build environment
- set VSVER=14
- ps: $env:VSCOMNTOOLS=(Get-Content ("env:VS" + "$env:VSVER" + "0COMNTOOLS"))
@@ -38,5 +50,9 @@ build_script:
- cl /Ivirtualsmartcard\src\vpcd virtualsmartcard\src\vpcd-config\vpcd-config.c /NODEFAULTLIB:MSVCRTD /NODEFAULTLIB:MSVCRT virtualsmartcard\src\vpcd-config\local-ip.c ws2_32.lib
- move vpcd-config.exe %ARTIFACT%
- bash -c "cd virtualsmartcard && autoreconf -i && exec 0</dev/null ./configure --enable-libpcsclite HELP2MAN=/usr/bin/true"
- bash -c "make vicc -C virtualsmartcard/src/vpicc"
- pyinstaller --onefile virtualsmartcard\src\vpicc\vicc -i doc\_static\chip.ico --distpath %ARTIFACT%
- 7z a %ARTIFACT%.zip %ARTIFACT%
- appveyor PushArtifact %ARTIFACT%.zip