完成JC-ArtList与JC-Salon端侧清理和统一命名

This commit is contained in:
2026-08-25 16:21:05 +08:00
parent aa93695704
commit abce4a2787
1839 changed files with 653 additions and 50415 deletions
@@ -1,4 +1,4 @@
param(
param(
[string]$RepoRoot = (Split-Path -Parent $PSScriptRoot),
[string]$ServerInfoPath = "",
[switch]$DryRun,
@@ -14,15 +14,15 @@
[string]$DatabaseUser = "",
[string]$DatabasePassword = "",
[string]$InitSqlPath = "",
[string]$CorePattern = "^FD-Core",
[string]$GatewayPattern = "^FD-Gateway",
[string]$CorePattern = "^JC-ArtList-Core",
[string]$GatewayPattern = "^JC-ArtList-Gateway",
[string]$WebTargetName = "",
[string]$WebTargetHost = "8.137.35.61",
[string]$CoreRemoteAppDir = "/opt/fingertip-designer-core",
[string]$GatewayRemoteAppDir = "/opt/fingertip-designer-gateway",
[string]$WebRemoteDir = "/opt/fingertip-designer-frontend",
[string]$CoreServiceName = "fingertip-designer-core",
[string]$GatewayServiceName = "fingertip-designer-gateway",
[string]$CoreRemoteAppDir = "/opt/jc-artlist-core",
[string]$GatewayRemoteAppDir = "/opt/jc-artlist-gateway",
[string]$WebRemoteDir = "/opt/jc-artlist-frontend",
[string]$CoreServiceName = "jc-artlist-core",
[string]$GatewayServiceName = "jc-artlist-gateway",
[int]$CoreHealthPort = 81,
[int]$GatewayHealthPort = 80,
[string]$HealthPath = "/health/check",
@@ -483,32 +483,32 @@ function Build-ReleasePackage {
$mavenArgs += "-DskipTests"
}
Write-Step "构建 FD-Core"
Invoke-Native $maven $mavenArgs (Join-Path $resolvedRepoRoot "FD-Core")
Write-Step "构建 JC-ArtList-Core"
Invoke-Native $maven $mavenArgs (Join-Path $resolvedRepoRoot "JC-ArtList-Core")
Write-Step "构建 FD-Gateway"
Invoke-Native $maven $mavenArgs (Join-Path $resolvedRepoRoot "FD-Gateway")
Write-Step "构建 JC-ArtList-Gateway"
Invoke-Native $maven $mavenArgs (Join-Path $resolvedRepoRoot "JC-ArtList-Gateway")
Write-Step "构建 FD-Frontend"
$frontendRoot = Join-Path $resolvedRepoRoot "FD-Frontend"
Write-Step "构建 JC-ArtList-Frontend"
$frontendRoot = Join-Path $resolvedRepoRoot "JC-ArtList-Frontend"
if (-not (Test-Path -LiteralPath (Join-Path $frontendRoot "node_modules"))) {
Invoke-Native "npm" @("ci") $frontendRoot
}
Invoke-Native "npm" @("run", "build") $frontendRoot
}
$coreJar = Join-Path $resolvedRepoRoot "FD-Core\target\FingertipDesigner-Core.jar"
$gatewayJar = Join-Path $resolvedRepoRoot "FD-Gateway\target\FingertipDesigner-Gateway.jar"
$frontendDist = Join-Path $resolvedRepoRoot "FD-Frontend\dist"
$coreJar = Join-Path $resolvedRepoRoot "JC-ArtList-Core\target\JC-ArtList-Core.jar"
$gatewayJar = Join-Path $resolvedRepoRoot "JC-ArtList-Gateway\target\JC-ArtList-Gateway.jar"
$frontendDist = Join-Path $resolvedRepoRoot "JC-ArtList-Frontend\dist"
foreach ($requiredPath in @($coreJar, $gatewayJar, $frontendDist, $InitSqlPath)) {
if (-not (Test-Path -LiteralPath $requiredPath)) {
throw "缺少发布产物:$requiredPath"
}
}
$coreArtifact = Join-Path $backendDir "FingertipDesigner-Core.jar"
$gatewayArtifact = Join-Path $backendDir "FingertipDesigner-Gateway.jar"
$frontendArtifact = Join-Path $frontendDir "fingertip-designer-frontend-dist.tar.gz"
$coreArtifact = Join-Path $backendDir "JC-ArtList-Core.jar"
$gatewayArtifact = Join-Path $backendDir "JC-ArtList-Gateway.jar"
$frontendArtifact = Join-Path $frontendDir "jc-artlist-frontend-dist.tar.gz"
$sqlArtifact = Join-Path $sqlDir "FingertipDesigner.sql"
Copy-Item -LiteralPath $coreJar -Destination $coreArtifact -Force
Copy-Item -LiteralPath $gatewayJar -Destination $gatewayArtifact -Force
@@ -521,7 +521,7 @@ function Build-ReleasePackage {
if (Test-Path -LiteralPath $frontendArtifact) {
Remove-Item -LiteralPath $frontendArtifact -Force
}
Invoke-Native $tar.Source @("-czf", $frontendArtifact, "-C", (Join-Path $resolvedRepoRoot "FD-Frontend"), "dist")
Invoke-Native $tar.Source @("-czf", $frontendArtifact, "-C", (Join-Path $resolvedRepoRoot "JC-ArtList-Frontend"), "dist")
$hashes = foreach ($artifact in @($coreArtifact, $gatewayArtifact, $frontendArtifact, $sqlArtifact)) {
$hash = Get-FileHash -LiteralPath $artifact -Algorithm SHA256
@@ -656,7 +656,7 @@ echo "Web current -> `$TARGET"
function Publish-Web {
param([object]$Server, [string]$ArchivePath)
$archiveName = "fingertip-designer-frontend-dist-$releaseTimestamp.tar.gz"
$archiveName = "jc-artlist-frontend-dist-$releaseTimestamp.tar.gz"
$quotedWebRemoteDir = ConvertTo-BashSingleQuoted $WebRemoteDir
Write-Step "准备 Web 目标机器"
Invoke-RemoteShell $Server "mkdir -p $quotedWebRemoteDir/releases"