appveyor_buildscript.ps1 982 B

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