Changed appveyor.yml to deliver only egg for python module on windows.

This commit is contained in:
Nathan Richard 2019-04-25 16:51:47 +02:00
parent e1779d3518
commit a6e11d88e2
1 changed files with 6 additions and 4 deletions

View File

@ -1,4 +1,8 @@
version: '2.1.{build}' environment:
APP_VERSION: '2.1'
version: '$(APP_VERSION).{build}'
image: Visual Studio 2017 image: Visual Studio 2017
@ -10,14 +14,12 @@ build_script:
- appveyor AddCompilationMessage "Building miniupnpc" - appveyor AddCompilationMessage "Building miniupnpc"
- mingw32-make -f Makefile.mingw - mingw32-make -f Makefile.mingw
- mingw32-make -f Makefile.mingw pythonmodule PYTHON=C:\Python37\python - mingw32-make -f Makefile.mingw pythonmodule PYTHON=C:\Python37\python
# - upnpc-static.exe -l
after_build: after_build:
- 7z a ..\miniupnpc-%APPVEYOR_BUILD_VERSION%.zip *.exe *.dll *.a *.lib - 7z a ..\miniupnpc-%APPVEYOR_BUILD_VERSION%.zip *.exe *.dll *.a *.lib
- 7z a ..\miniupnpc-python-%APPVEYOR_BUILD_VERSION%.zip build\ dist\
artifacts: artifacts:
- path: miniupnpc-$(appveyor_build_version).zip - path: miniupnpc-$(appveyor_build_version).zip
name: miniupnpc binaries name: miniupnpc binaries
- path: miniupnpc-python-$(appveyor_build_version).zip - path: miniupnpc/dist/miniupnpc-$(APP_VERSION)-py3.7-win32.egg
name: miniupnpc python module name: miniupnpc python module