# 从 LIKE AI 同步 engine/ 运行时(开发维护用,普通用户无需运行) $ErrorActionPreference = "Stop" $src = "C:\Users\wilso\Desktop\LIKE AI" $dest = Join-Path $PSScriptRoot "engine" if (-not (Test-Path $src)) { Write-Error "LIKE AI 源目录不存在: $src" } New-Item -ItemType Directory -Force -Path "$dest\xhs_bridge" | Out-Null Get-ChildItem "$src\xhs_bridge\*.py" | Copy-Item -Destination "$dest\xhs_bridge" -Force Copy-Item "$src\xhs_bridge\gui\tools_catalog.py" "$dest\xhs_bridge\tools_catalog.py" -Force robocopy "$src\scripts" "$dest\scripts" /E /MIR /NFL /NDL /NJH /NJS /nc /ns /np | Out-Null robocopy "$src\extension" "$dest\extension" /E /MIR /NFL /NDL /NJH /NJS /nc /ns /np | Out-Null Write-Host "已同步 engine/ 自 $src"