项目结构变更

This commit is contained in:
2026-06-09 11:20:24 +08:00
parent fb6cd124c8
commit 871823b3da
45 changed files with 222 additions and 223 deletions

View File

@@ -0,0 +1,25 @@
# 本地打包 CodeChecker 并复制到 .gitea/workflows/
$ErrorActionPreference = "Stop"
$Root = Split-Path -Parent (Split-Path -Parent $MyInvocation.MyCommand.Path)
$CheckerDir = Join-Path $Root ".gitea\checker"
$WorkflowsDir = Join-Path $Root ".gitea\workflows"
$TargetJar = Join-Path $CheckerDir "target\code-checker.jar"
$OutputJar = Join-Path $WorkflowsDir "code-checker.jar"
Write-Host ">> 编译 CodeChecker..."
Push-Location $Root
& mvn -q -f .gitea/checker/pom.xml package -DskipTests
if ($LASTEXITCODE -ne 0) {
Pop-Location
Write-Error "Maven 编译失败exit code: $LASTEXITCODE"
}
Pop-Location
if (-not (Test-Path $TargetJar)) {
Write-Error "编译失败,未找到 $TargetJar"
}
New-Item -ItemType Directory -Force -Path $WorkflowsDir | Out-Null
Copy-Item -Force $TargetJar $OutputJar
Write-Host ">> 已输出: $OutputJar"
Write-Host ">> 请 commit 并 push .gitea/workflows/code-checker.jar"