build.ps1 移至 scripts/,路径基准改为仓库根目录
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
@@ -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')
|
||||||
Reference in New Issue
Block a user