修复规划页错误展示和迁移发布包
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
@@ -13,6 +13,7 @@ $backendDir = Join-Path $releaseDir "backend"
|
||||
$frontendDir = Join-Path $releaseDir "frontend"
|
||||
$miniProgramDir = Join-Path $releaseDir "miniprograms"
|
||||
$sqlPath = Join-Path $repoRoot "scripts\sql\init\JayuCloud.sql"
|
||||
$migrationSqlRoot = Join-Path $repoRoot "scripts\sql\migrations"
|
||||
|
||||
function Resolve-Maven {
|
||||
param([string]$PreferredPath)
|
||||
@@ -131,6 +132,7 @@ Copy-Directory $managerMobileDist (Join-Path $frontendDir "dist\jy-salon-front")
|
||||
Copy-Directory (Join-Path $repoRoot "JY-Artist-WeChat") (Join-Path $miniProgramDir "JY-Artist-WeChat")
|
||||
Copy-Directory (Join-Path $repoRoot "JY-Salon-WeChat") (Join-Path $miniProgramDir "JY-Salon-WeChat")
|
||||
Copy-RequiredFile $sqlPath (Join-Path $releaseDir "JayuCloud.sql")
|
||||
Copy-Directory $migrationSqlRoot (Join-Path $releaseDir "migrations")
|
||||
|
||||
$manifest = @(
|
||||
"# JayuCloud Release $timestamp",
|
||||
@@ -144,9 +146,11 @@ $manifest = @(
|
||||
"- miniprograms/JY-Artist-WeChat",
|
||||
"- miniprograms/JY-Salon-WeChat",
|
||||
"- JayuCloud.sql",
|
||||
"- migrations",
|
||||
"",
|
||||
"Nacos namespace: jayu-cloud",
|
||||
"Database initialized by: scripts/sql/init/JayuCloud.sql",
|
||||
"Database migrations by: scripts/sql/migrations",
|
||||
"Database name: jayu_cloud",
|
||||
"Manager mini program API: https://yunail.art/api/admin",
|
||||
"Manager mobile web: https://yunail.art/jy-salon-front/"
|
||||
|
||||
Reference in New Issue
Block a user