diff --git a/docs/scripts/deploy-jayucloud-salon-production.ps1 b/docs/scripts/deploy-jayucloud-salon-production.ps1 index 30977d79..7c36be8b 100644 --- a/docs/scripts/deploy-jayucloud-salon-production.ps1 +++ b/docs/scripts/deploy-jayucloud-salon-production.ps1 @@ -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