appveyor.yml 853 B

12345678910111213141516171819202122232425262728
  1. version: 1.1.0.{build}
  2. install:
  3. - cmd: cinst nsis -y
  4. - cmd: RefreshEnv
  5. - ps: Set-AppveyorBuildVariable -Name PATH -Value "$env:PATH;C:\Program Files (x86)\NSIS"
  6. - ps: |
  7. $url='http://download.microsoft.com/download/7/B/6/7B629E05-399A-4A92-B5BC-484C74B5124B/dotNetFx40_Client_setup.exe'
  8. $exe=(Split-Path $url -Leaf)
  9. if (Test-Path $exe) {
  10. Write-Output "Using cached $exe"
  11. } else {
  12. Write-Output "No cached $exe, downloading $url"
  13. Start-FileDownload $url
  14. }
  15. assembly_info:
  16. patch: true
  17. configuration:
  18. - Debug
  19. - Release
  20. before_build:
  21. - nuget restore
  22. after_build:
  23. - makensis /DSSH_HANDLER_VERSION=%APPVEYOR_BUILD_VERSION% /DSSH_HANDLER_CONFIGURATION=%CONFIGURATION% ssh-handler.nsi
  24. artifacts:
  25. - path: ssh-handler\bin\$(configuration)\ssh-handler.exe
  26. - path: ssh-handler-*.exe
  27. cache:
  28. - dotNetFx40_Client_setup.exe