Slic3r/package/win/appveyor_buildscript.ps1
Joseph Lenox b826f8baea Windows 32-bit build. (#3954)
* Updated appveyor, preinstall, and deploy script to build 32 and 64 bit versions.
2017-05-14 12:51:12 -05:00

28 lines
981 B
PowerShell

if (!(Test-Path "C:\users\appveyor\local-lib-$env:ARCH.7z")) {
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
}
if (Test-Path "C:\users\appveyor\local-lib-$env:ARCH.7z") {
cmd /c "7z x C:\Users\appveyor\local-lib-$env:ARCH.7z -oC:\projects\slic3r" -y | Write-Output
rm -r 'C:\projects\slic3r\local-lib\Slic3r*'
}
$env:Path = "C:\Strawberry\c\bin;C:\Strawberry\perl\bin;" + $env:Path
cd C:\projects\slic3r
rm -r 'C:\Program Files (x86)\Microsoft Vis*\bin' -Force
Add-AppveyorCompilationMessage -Message "Building Slic3r XS"
perl ./Build.pl
if ($LastExitCode -ne 0) {
Add-AppveyorCompilationMessage -Message "XS Failed to Build" -Category Error
$host.SetShouldExit($LastExitCode)
exit
}
Add-AppveyorCompilationMessage -Message "Making ZIP package"
cd package/win
./compile_wrapper.ps1 524| Write-Output
./package_win32.ps1 524| Write-Output