Remove explanatory comments from speed test build steps

Co-authored-by: MickLesk <47820557+MickLesk@users.noreply.github.com>
This commit is contained in:
copilot-swe-agent[bot]
2026-08-14 20:22:50 +00:00
committed by GitHub
parent 655b8f84bf
commit 1555337110
2 changed files with 0 additions and 4 deletions
-2
View File
@@ -50,9 +50,7 @@ function update_script() {
chmod +x /opt/networkoptimizer/publish/NetworkOptimizer.Web
mkdir -p /opt/networkoptimizer/publish/tools
cd /opt/networkoptimizer/src/uwnspeedtest
# UniFi gateways are always arm64, so the gateway binary is built for arm64
CGO_ENABLED=0 GOOS=linux GOARCH=arm64 $STD go build -trimpath -ldflags "-s -w" -o /opt/networkoptimizer/publish/tools/uwnspeedtest-linux-arm64 .
# The "Run Test from Server" binary must match the container architecture
SERVER_ARCH="$(arch_resolve)"
if [[ "$SERVER_ARCH" != "arm64" ]]; then
CGO_ENABLED=0 GOOS=linux GOARCH="$SERVER_ARCH" $STD go build -trimpath -ldflags "-s -w" -o "/opt/networkoptimizer/publish/tools/uwnspeedtest-linux-${SERVER_ARCH}" .
-2
View File
@@ -45,9 +45,7 @@ msg_ok "Built NetworkOptimizer"
msg_info "Building Speed Test Binaries"
mkdir -p /opt/networkoptimizer/publish/tools
cd /opt/networkoptimizer/src/uwnspeedtest
# UniFi gateways are always arm64, so the gateway binary is built for arm64
CGO_ENABLED=0 GOOS=linux GOARCH=arm64 $STD go build -trimpath -ldflags "-s -w" -o /opt/networkoptimizer/publish/tools/uwnspeedtest-linux-arm64 .
# The "Run Test from Server" binary must match the container architecture
SERVER_ARCH="$(arch_resolve)"
if [[ "$SERVER_ARCH" != "arm64" ]]; then
CGO_ENABLED=0 GOOS=linux GOARCH="$SERVER_ARCH" $STD go build -trimpath -ldflags "-s -w" -o "/opt/networkoptimizer/publish/tools/uwnspeedtest-linux-${SERVER_ARCH}" .