install.ps1 1.4 KB

123456789101112131415161718192021222324252627282930313233
  1. $ErrorActionPreference = "Stop"
  2. & git submodule --quiet update --init --recursive
  3. Write-Host -ForegroundColor Green "`n### Installing CMake and python ###`n"
  4. & cinst --no-progress cmake python2
  5. Write-Host -ForegroundColor Green "`n### Installing sphinx ###`n"
  6. & pip install --user sphinx sphinx_rtd_theme
  7. Write-Host -ForegroundColor Green "`n### Installing Miktex ###`n"
  8. if (-not (Test-Path "c:\miktex\texmfs\install\miktex\bin\pdflatex.exe")) {
  9. & appveyor DownloadFile https://ftp.uni-erlangen.de/mirrors/CTAN/systems/win32/miktex/setup/miktex-portable.exe
  10. & 7z x miktex-portable.exe -oc:\miktex -bso0 -bsp0
  11. # Remove some big files to reduce size to be cached
  12. Remove-Item -Path c:\miktex\texmfs\install\doc -Recurse
  13. Remove-Item -Path c:\miktex\texmfs\install\miktex\bin\biber.exe
  14. Remove-Item -Path c:\miktex\texmfs\install\miktex\bin\icudt58.dll
  15. Remove-Item -Path c:\miktex\texmfs\install\miktex\bin\a5toa4.exe
  16. }
  17. Write-Host -ForegroundColor Green "`n### Installing graphviz ###`n"
  18. & cinst --no-progress graphviz.portable
  19. if ($env:CC_SHORTNAME -eq "vs2015") {
  20. Write-Host -ForegroundColor Green "`n### Installing libcheck ###`n"
  21. & appveyor DownloadFile https://github.com/Pro/check/releases/download/0.12.0_win/check.zip
  22. & 7z x check.zip -oc:\ -bso0 -bsp0
  23. Write-Host -ForegroundColor Green "`n### Installing DrMemory ###`n"
  24. & cinst --no-progress drmemory.portable
  25. }