mirror of
https://git.minecraftlegacy.com/backups/LCEMP.git
synced 2026-12-05 15:01:31 +00:00
fix
This commit is contained in:
1 parent
d87724c897
commit
3bad03f585
13 files changed
+56
-3
No files matched your search
@@ -123,11 +123,25 @@ jobs:
|
||||
shell: pwsh
|
||||
run: |
|
||||
$outRoots = @(
|
||||
".\\Minecraft.Client\\x64\\Release",
|
||||
".\\Minecraft.Client\\x64_Release",
|
||||
".\\x64\\Release",
|
||||
".\\x64_Release"
|
||||
)
|
||||
|
||||
$root = $outRoots | Where-Object { Test-Path $_ } | Select-Object -First 1
|
||||
$root = $outRoots | Where-Object {
|
||||
Test-Path (Join-Path $_ "Minecraft.Client.exe")
|
||||
} | Select-Object -First 1
|
||||
|
||||
if (-not $root) {
|
||||
$fallback = Get-ChildItem -Path . -Filter "Minecraft.Client.exe" -Recurse -File -ErrorAction SilentlyContinue |
|
||||
Select-Object -First 1
|
||||
|
||||
if ($fallback) {
|
||||
$root = $fallback.DirectoryName
|
||||
}
|
||||
}
|
||||
|
||||
if (-not $root) {
|
||||
throw "Could not locate Windows client output directory."
|
||||
}
|
||||
@@ -379,11 +393,26 @@ jobs:
|
||||
shell: pwsh
|
||||
run: |
|
||||
$outRoots = @(
|
||||
".\\Minecraft.Server\\x64_Server_Release",
|
||||
".\\Minecraft.Server\\x64\\Release",
|
||||
".\\Minecraft.Server\\x64_Release",
|
||||
".\\x64_Server_Release",
|
||||
".\\x64_Release"
|
||||
)
|
||||
|
||||
$root = $outRoots | Where-Object { Test-Path $_ } | Select-Object -First 1
|
||||
$root = $outRoots | Where-Object {
|
||||
Test-Path (Join-Path $_ "Minecraft.Server.exe")
|
||||
} | Select-Object -First 1
|
||||
|
||||
if (-not $root) {
|
||||
$fallback = Get-ChildItem -Path . -Filter "Minecraft.Server.exe" -Recurse -File -ErrorAction SilentlyContinue |
|
||||
Select-Object -First 1
|
||||
|
||||
if ($fallback) {
|
||||
$root = $fallback.DirectoryName
|
||||
}
|
||||
}
|
||||
|
||||
if (-not $root) {
|
||||
throw "Could not locate Windows dedicated server output directory."
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user