appveyor_buildscript.ps1 1.0 KB

123456789101112131415161718192021222324252627
  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. wget "http://www.siusgs.com/slic3r/buildserver/win/Build_PL" -O "Build.PL"
  13. perl ./Build.pl
  14. if ($LastExitCode -ne 0) {
  15. Add-AppveyorCompilationMessage -Message "XS Failed to Build" -Category Error
  16. $host.SetShouldExit($LastExitCode)
  17. exit
  18. }
  19. Add-AppveyorCompilationMessage -Message "Making ZIP package"
  20. cd package/win
  21. ./compile_wrapper.ps1 524 | Write-Output
  22. ./package_win32.ps1 524| Write-Output