добавлены новые питомцы

This commit is contained in:
2026-08-04 20:11:52 +04:00
parent 76ca0cc851
commit c905d0558e
69 changed files with 1033 additions and 45 deletions
+18 -5
View File
@@ -110,11 +110,19 @@ function Stop-WowRuntime {
}
}
# --- Ensure tool exists
if (!(Test-Path $TOOL)) {
Write-Host "Building Rust tool..."
Push-Location (Join-Path $ROOT "tool")
cargo build --release
# --- Always rebuild the tool so generated DBC/SQL formats match the current sources.
$cargo = Get-Command cargo -ErrorAction SilentlyContinue
if (-not $cargo) {
throw "Cargo was not found; the MPQ/DBC builder cannot be refreshed."
}
Write-Host "Building Rust tool..."
Push-Location (Join-Path $ROOT "tool")
try {
& $cargo.Source build --release
if ($LASTEXITCODE -ne 0) {
throw "Rust tool build failed with exit code $LASTEXITCODE."
}
} finally {
Pop-Location
}
@@ -135,6 +143,11 @@ if (!(Test-Path (Join-Path $DIST_DIR "Data"))) {
# --- Build/package/deploy WarcraftXL before the dist sync. The packaged files
# are uploaded by upload_to_s3.py and consumed by the launcher manifest.
Stop-WowRuntime -ClientPath $WOW_HOME
$creatureCache = Join-Path $WOW_HOME "Cache\WDB\ruRU\creaturecache.wdb"
if (Test-Path -LiteralPath $creatureCache -PathType Leaf) {
Remove-Item -LiteralPath $creatureCache -Force
Write-Host "Cleared stale creature cache: $creatureCache"
}
Write-Host "Building and packaging WarcraftXL..."
& $WXL_BUILD_SCRIPT -Configuration Release -ClientPath $WOW_HOME `
-PackagePath $DIST_DIR -Deploy