Skip to content

Commit 00e04d1

Browse files
abcdefg30pchote
authored andcommitted
Update make check for windows
1 parent 687ee83 commit 00e04d1

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

make.ps1

+10-2
Original file line numberDiff line numberDiff line change
@@ -122,13 +122,20 @@ function Check-Command
122122
{
123123
echo "Checking for explicit interface violations..."
124124
Invoke-Expression "$utilityPath $modID --check-explicit-interfaces"
125+
}
126+
else
127+
{
128+
UtilityNotFound
129+
}
125130

131+
if (Test-Path $styleCheckPath)
132+
{
126133
echo "Checking for code style violations in OpenRA.Mods.$modID..."
127-
Invoke-Expression "$utilityPath $modID --check-code-style OpenRA.Mods.$modID"
134+
Invoke-Expression "$styleCheckPath OpenRA.Mods.$modID"
128135
}
129136
else
130137
{
131-
UtilityNotFound
138+
echo "OpenRA.StyleCheck.exe could not be found. Build the project first using the `"all`" command."
132139
}
133140
}
134141

@@ -336,6 +343,7 @@ if ($command -eq "all" -or $command -eq "clean")
336343
}
337344

338345
$utilityPath = $env:ENGINE_DIRECTORY + "/OpenRA.Utility.exe"
346+
$styleCheckPath = $env:ENGINE_DIRECTORY + "/OpenRA.StyleCheck.exe"
339347

340348
$execute = $command
341349
if ($command.Length -gt 1)

0 commit comments

Comments
 (0)