重构项目结构并纳入版本管理
- 源码移至 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>
This commit is contained in:
12
build.ps1
Normal file
12
build.ps1
Normal file
@@ -0,0 +1,12 @@
|
||||
# 编译脚本:源码在 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
|
||||
}
|
||||
Reference in New Issue
Block a user