From 69dc3462bdb17d5e2084504e5a738d00d231e2c6 Mon Sep 17 00:00:00 2001 From: admercs Date: Mon, 19 Feb 2024 14:07:20 -0800 Subject: [PATCH] update windows build --- scripts/build.ps1 | 2 +- scripts/test_cmake.psm1 | 2 +- scripts/test_eigen.psm1 | 2 +- scripts/test_rpclib.psm1 | 3 ++- scripts/test_unrealasset.psm1 | 2 +- scripts/test_visualstudio.psm1 | 3 ++- 6 files changed, 8 insertions(+), 6 deletions(-) diff --git a/scripts/build.ps1 b/scripts/build.ps1 index 7fddd3dc..2b003930 100644 --- a/scripts/build.ps1 +++ b/scripts/build.ps1 @@ -95,7 +95,7 @@ function Invoke-Fail { $RemoveDirs = $false ) Set-Location $ProjectDir - if $RemoveDirs -eq $true { Remove-Directories } + if ($RemoveDirs) -eq $true { Remove-Directories } Write-Error 'Error: Build failed. Exiting Program.' -ErrorAction Stop } diff --git a/scripts/test_cmake.psm1 b/scripts/test_cmake.psm1 index a9eabb5b..cc0446a8 100644 --- a/scripts/test_cmake.psm1 +++ b/scripts/test_cmake.psm1 @@ -46,7 +46,7 @@ function Invoke-Fail { $RemoveDirs = $false ) Set-Location $ProjectDir - if $RemoveDirs -eq $true { Remove-Directories } + if ($RemoveDirs) -eq $true { Remove-Directories } Write-Error 'Error: Build failed. Exiting Program.' -ErrorAction Stop } diff --git a/scripts/test_eigen.psm1 b/scripts/test_eigen.psm1 index 1bbb7918..2ff0eb32 100644 --- a/scripts/test_eigen.psm1 +++ b/scripts/test_eigen.psm1 @@ -47,7 +47,7 @@ function Invoke-Fail { $RemoveDirs = $false ) Set-Location $ProjectDir - if $RemoveDirs -eq $true { Remove-Directories } + if ($RemoveDirs) -eq $true { Remove-Directories } Write-Error 'Error: Build failed. Exiting Program.' -ErrorAction Stop } diff --git a/scripts/test_rpclib.psm1 b/scripts/test_rpclib.psm1 index 34368885..de391dd1 100644 --- a/scripts/test_rpclib.psm1 +++ b/scripts/test_rpclib.psm1 @@ -48,9 +48,10 @@ function Invoke-Fail { $RemoveDirs = $false ) Set-Location $ProjectDir - if $RemoveDirs -eq $true { Remove-Directories } + if ($RemoveDirs) -eq $true { Remove-Directories } Write-Error 'Error: Build failed. Exiting Program.' -ErrorAction Stop } + function Get-RpcLib { Write-Output '' diff --git a/scripts/test_unrealasset.psm1 b/scripts/test_unrealasset.psm1 index 709d385e..8865305c 100644 --- a/scripts/test_unrealasset.psm1 +++ b/scripts/test_unrealasset.psm1 @@ -47,7 +47,7 @@ function Invoke-Fail { $RemoveDirs = $false ) Set-Location $ProjectDir - if $RemoveDirs -eq $true { Remove-Directories } + if ($RemoveDirs) -eq $true { Remove-Directories } Write-Error 'Error: Build failed. Exiting Program.' -ErrorAction Stop } diff --git a/scripts/test_visualstudio.psm1 b/scripts/test_visualstudio.psm1 index 14b0c555..5efdc0e3 100644 --- a/scripts/test_visualstudio.psm1 +++ b/scripts/test_visualstudio.psm1 @@ -45,9 +45,10 @@ function Invoke-Fail { $RemoveDirs = $false ) Set-Location $ProjectDir - if $RemoveDirs -eq $true { Remove-Directories } + if ($RemoveDirs) -eq $true { Remove-Directories } Write-Error 'Error: Build failed. Exiting Program.' -ErrorAction Stop } + function Get-VsInstance { param( [Parameter()]