修复复用发布包时清单目录缺失
发布 Nacos 配置 / publish (push) Failing after 1s

This commit is contained in:
2026-09-03 23:45:38 +08:00
parent 2bf5e9d45b
commit 47611d5c7a
@@ -849,6 +849,10 @@ function Write-ReleaseManifest {
deploy = [bool]$Deploy
}
}
$manifestDirectory = Split-Path -Parent $manifestPath
if (-not (Test-Path -LiteralPath $manifestDirectory)) {
New-Item -ItemType Directory -Path $manifestDirectory -Force | Out-Null
}
$manifest | ConvertTo-Json -Depth 8 | Set-Content -LiteralPath $manifestPath -Encoding UTF8
Write-Host "Manifest: $manifestPath"
}
@@ -886,6 +890,10 @@ if ($PackageOnly) {
packageOnly = $true
}
}
$packageManifestDirectory = Split-Path -Parent $manifestPath
if (-not (Test-Path -LiteralPath $packageManifestDirectory)) {
New-Item -ItemType Directory -Path $packageManifestDirectory -Force | Out-Null
}
$packageManifest | ConvertTo-Json -Depth 8 | Set-Content -LiteralPath $manifestPath -Encoding UTF8
Write-Host "发布包已生成:$($package.Directory)"
exit 0