appveyor_buildscript.ps1 1.1 KB

12345678910111213141516171819202122232425262728
  1. if (!(Test-Path "C:\users\appveyor\local-lib-$env:ARCH.7z")) {
  2. wget "https://bintray.com/lordofhyphens/Slic3r/download_file?file_path=local-lib-$env:ARCH.7z" -o "C:\users\appveyor\local-lib-$env:ARCH.7z" | Write-Output
  3. }
  4. if (Test-Path "C:\users\appveyor\local-lib-$env:ARCH.7z") {
  5. cmd /c "7z x C:\Users\appveyor\local-lib-$env:ARCH.7z -oC:\projects\slic3r" -y | Write-Output
  6. rm -r 'C:\projects\slic3r\local-lib\Slic3r*'
  7. }
  8. $env:Path = "C:\Strawberry\c\bin;C:\Strawberry\perl\bin;" + $env:Path
  9. cd C:\projects\slic3r
  10. rm -r 'C:\Program Files (x86)\Microsoft Vis*\bin' -Force
  11. Add-AppveyorCompilationMessage -Message "Building Slic3r XS"
  12. $env:SLIC3R_GIT_VERSION = $(git rev-parse HEAD)
  13. wget "http://www.siusgs.com/slic3r/buildserver/win/Build_PL" -O "Build.PL"
  14. perl ./Build.pl
  15. if ($LastExitCode -ne 0) {
  16. Add-AppveyorCompilationMessage -Message "XS Failed to Build" -Category Error
  17. $host.SetShouldExit($LastExitCode)
  18. exit
  19. }
  20. Add-AppveyorCompilationMessage -Message "Making ZIP package"
  21. cd package/win
  22. ./compile_wrapper.ps1 524 | Write-Output
  23. ./package_win32.ps1 524| Write-Output