Fix custom engine fetching on Windows.
This commit is contained in:
parent
4bb3d26b0d
commit
e7caeefd11
2
make.ps1
2
make.ps1
@ -328,7 +328,7 @@ if ($command -eq "all" -or $command -eq "clean")
|
||||
[io.compression.zipfile]::ExtractToDirectory($dlPath, $env:AUTOMATIC_ENGINE_EXTRACT_DIRECTORY)
|
||||
rm $dlPath
|
||||
|
||||
$extractedDir = Get-ChildItem -Recurse | ?{ $_.ToString().StartsWith("OpenRA-") -and $_.PSIsContainer }
|
||||
$extractedDir = Get-ChildItem $env:AUTOMATIC_ENGINE_EXTRACT_DIRECTORY -Recurse | ?{ $_.PSIsContainer } | Select-Object -First 1
|
||||
Move-Item $extractedDir.FullName -Destination $templateDir
|
||||
Rename-Item $extractedDir.Name (Split-Path -leaf $env:ENGINE_DIRECTORY)
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user