From 47611d5c7a1ebc7333284d693a6c0b3d1e506001 Mon Sep 17 00:00:00 2001 From: xiaowang <2161656029@qq.com> Date: Thu, 3 Sep 2026 23:45:38 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=A4=8D=E7=94=A8=E5=8F=91?= =?UTF-8?q?=E5=B8=83=E5=8C=85=E6=97=B6=E6=B8=85=E5=8D=95=E7=9B=AE=E5=BD=95?= =?UTF-8?q?=E7=BC=BA=E5=A4=B1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/scripts/deploy-jayucloud-salon-production.ps1 | 8 ++++++++ 1 file changed, 8 insertions(+) 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