build.ps1 移至 scripts/,路径基准改为仓库根目录

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
2026-06-01 22:05:11 +08:00
parent 1216ad0145
commit ddd9d43f9d

View File

@@ -1,6 +1,6 @@
# 编译脚本:源码在 src/go/,产物输出到 build/relay.exe # 编译脚本(位于 scripts/:源码在 src/go/,产物输出到 build/relay.exe
$ErrorActionPreference = 'Stop' $ErrorActionPreference = 'Stop'
$root = $PSScriptRoot $root = Split-Path $PSScriptRoot -Parent # 仓库根目录scripts/ 的上一级)
$out = Join-Path $root 'build\relay.exe' $out = Join-Path $root 'build\relay.exe'
Push-Location (Join-Path $root 'src\go') Push-Location (Join-Path $root 'src\go')