修复规划页错误展示和迁移发布包

This commit is contained in:
2026-07-21 22:30:08 +08:00
parent 7d4c7539e2
commit 0965a35ed7
8 changed files with 64 additions and 15 deletions
+5 -1
View File
@@ -47,6 +47,7 @@ $frontendDir = Join-Path $releaseDir "frontend"
$sqlDir = Join-Path $releaseDir "sql"
$manifestPath = Join-Path $releaseDir "manifest.json"
$defaultInitSqlPath = Join-Path $resolvedRepoRoot "scripts\sql\init\JayuCloud.sql"
$migrationSqlRoot = Join-Path $resolvedRepoRoot "scripts\sql\migrations"
if (-not $InitSqlPath) {
$InitSqlPath = $defaultInitSqlPath
}
@@ -513,7 +514,7 @@ function Build-ReleasePackage {
$gatewayJar = Join-Path $resolvedRepoRoot "JY-Gateway\target\JY-Gateway.jar"
$frontendDist = Join-Path $resolvedRepoRoot "JY-Artist-Frontend\dist"
$managerMobileDist = Join-Path $resolvedRepoRoot "JY-Salon-Front\dist"
foreach ($requiredPath in @($coreJar, $gatewayJar, $frontendDist, $managerMobileDist, $InitSqlPath)) {
foreach ($requiredPath in @($coreJar, $gatewayJar, $frontendDist, $managerMobileDist, $InitSqlPath, $migrationSqlRoot)) {
if (-not (Test-Path -LiteralPath $requiredPath)) {
throw "缺少发布产物:$requiredPath"
}
@@ -523,9 +524,11 @@ function Build-ReleasePackage {
$gatewayArtifact = Join-Path $backendDir "JY-Gateway.jar"
$frontendArtifact = Join-Path $frontendDir "jy-artist-frontend-dist.tar.gz"
$sqlArtifact = Join-Path $sqlDir "JayuCloud.sql"
$migrationSqlArtifact = Join-Path $sqlDir "migrations"
Copy-Item -LiteralPath $coreJar -Destination $coreArtifact -Force
Copy-Item -LiteralPath $gatewayJar -Destination $gatewayArtifact -Force
Copy-Item -LiteralPath $InitSqlPath -Destination $sqlArtifact -Force
Copy-Item -LiteralPath $migrationSqlRoot -Destination $migrationSqlArtifact -Recurse -Force
$tar = Get-Command tar -ErrorAction SilentlyContinue
if (-not $tar) {
@@ -560,6 +563,7 @@ function Build-ReleasePackage {
GatewayJar = $gatewayArtifact
FrontendArchive = $frontendArtifact
InitSql = $sqlArtifact
MigrationSql = $migrationSqlArtifact
Hashes = @($hashes)
Git = $GitState
}