From 00e04d1c484aeb552ce47edc1cf1c06bcbf3cbb3 Mon Sep 17 00:00:00 2001 From: abcdefg30 Date: Thu, 20 Jul 2017 16:33:12 +0200 Subject: [PATCH] Update make check for windows --- make.ps1 | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/make.ps1 b/make.ps1 index f8bbce1..d7385be 100644 --- a/make.ps1 +++ b/make.ps1 @@ -122,14 +122,21 @@ function Check-Command { echo "Checking for explicit interface violations..." Invoke-Expression "$utilityPath $modID --check-explicit-interfaces" - - echo "Checking for code style violations in OpenRA.Mods.$modID..." - Invoke-Expression "$utilityPath $modID --check-code-style OpenRA.Mods.$modID" } else { UtilityNotFound } + + if (Test-Path $styleCheckPath) + { + echo "Checking for code style violations in OpenRA.Mods.$modID..." + Invoke-Expression "$styleCheckPath OpenRA.Mods.$modID" + } + else + { + echo "OpenRA.StyleCheck.exe could not be found. Build the project first using the `"all`" command." + } } function Check-Scripts-Command @@ -336,6 +343,7 @@ if ($command -eq "all" -or $command -eq "clean") } $utilityPath = $env:ENGINE_DIRECTORY + "/OpenRA.Utility.exe" +$styleCheckPath = $env:ENGINE_DIRECTORY + "/OpenRA.StyleCheck.exe" $execute = $command if ($command.Length -gt 1)