Merge pull request '修复复用发布包时清单目录缺失' (#42) from dev into sit
Reviewed-on: http://wcy111.top:3000/xiaowang/JayuCloud/pulls/42
This commit was merged in pull request #42.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user