- 源码移至 src/go/,编译产物输出到 build/(不入库) - 新增 .gitignore:排除 data/、build/、*.exe、*.log、说明.md - 新增 build.ps1:从 src/go 编译到 build/relay.exe - 移除 说明.md 的版本跟踪(含上游密钥,仅保留在本地) Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
13 lines
296 B
PowerShell
13 lines
296 B
PowerShell
# 编译脚本:源码在 src/go/,产物输出到 build/relay.exe
|
|
$ErrorActionPreference = 'Stop'
|
|
$root = $PSScriptRoot
|
|
$out = Join-Path $root 'build\relay.exe'
|
|
|
|
Push-Location (Join-Path $root 'src\go')
|
|
try {
|
|
go build -o $out .
|
|
Write-Host "Built: $out"
|
|
} finally {
|
|
Pop-Location
|
|
}
|