This commit is contained in:
Your Name
2026-04-22 14:13:21 +08:00
parent e0406b5d0e
commit 7cbde2aa78
145 changed files with 23086 additions and 2243 deletions

View File

@@ -125,6 +125,40 @@ foreach ($item in $webItems) {
}
Copy-OptionalItem -Source (Join-Path $root "domain-web\dist") -Destination $webTarget
$domainCheckTarget = Join-Path $stagingRoot "domainCheck"
Copy-OptionalItem -Source (Join-Path $root "domainCheck") -Destination $stagingRoot
if (Test-Path -LiteralPath $domainCheckTarget) {
$excludedDomainCheckPaths = @(
".venv",
".pytest_cache",
"__pycache__",
"logs",
"data",
"runtime",
".env",
"credentials.json",
"juming_cookies.pkl",
"detect_options.json",
"proxy_config.json",
"thread_count.json",
"node_thread_counts.json",
"runtime_settings.json",
"detect_worker.log"
)
foreach ($relativePath in $excludedDomainCheckPaths) {
$targetPath = Join-Path $domainCheckTarget $relativePath
if (Test-Path -LiteralPath $targetPath) {
Remove-Item -LiteralPath $targetPath -Recurse -Force
}
}
Get-ChildItem -Path $domainCheckTarget -Directory -Recurse -Force -Filter "__pycache__" | ForEach-Object {
Remove-Item -LiteralPath $_.FullName -Recurse -Force
}
Get-ChildItem -Path $domainCheckTarget -File -Recurse -Force -Include "*.pyc", "detect_worker*.log" | ForEach-Object {
Remove-Item -LiteralPath $_.FullName -Force
}
}
$smokeOk = $false
$smokeMessage = ""
if ((Test-Path -LiteralPath $smokeScript) -and (Test-Path -LiteralPath $smokeRunner)) {
@@ -185,6 +219,7 @@ $manifest = [ordered]@{
scripts = Get-ChildItem -Path $scriptsTarget -File | Select-Object -ExpandProperty Name
domain_api = Get-ChildItem -Path $apiTarget | Select-Object -ExpandProperty Name
domain_web = Get-ChildItem -Path $webTarget | Select-Object -ExpandProperty Name
domain_check = if (Test-Path -LiteralPath $domainCheckTarget) { Get-ChildItem -Path $domainCheckTarget | Select-Object -ExpandProperty Name } else { @() }
}
}
@@ -201,6 +236,7 @@ $readmePath = Join-Path $stagingRoot "README_RELEASE.txt"
"- scripts",
"- domain-api",
"- domain-web",
"- domainCheck",
"- release_manifest.json",
"- smoke_test_report.json (if generated)",
"",