Skip to content

Commit 1555337

Browse files
CopilotMickLesk
andauthored
Remove explanatory comments from speed test build steps
Co-authored-by: MickLesk <47820557+MickLesk@users.noreply.github.com>
1 parent 655b8f8 commit 1555337

2 files changed

Lines changed: 0 additions & 4 deletions

File tree

ct/networkoptimizer.sh

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,9 +50,7 @@ function update_script() {
5050
chmod +x /opt/networkoptimizer/publish/NetworkOptimizer.Web
5151
mkdir -p /opt/networkoptimizer/publish/tools
5252
cd /opt/networkoptimizer/src/uwnspeedtest
53-
# UniFi gateways are always arm64, so the gateway binary is built for arm64
5453
CGO_ENABLED=0 GOOS=linux GOARCH=arm64 $STD go build -trimpath -ldflags "-s -w" -o /opt/networkoptimizer/publish/tools/uwnspeedtest-linux-arm64 .
55-
# The "Run Test from Server" binary must match the container architecture
5654
SERVER_ARCH="$(arch_resolve)"
5755
if [[ "$SERVER_ARCH" != "arm64" ]]; then
5856
CGO_ENABLED=0 GOOS=linux GOARCH="$SERVER_ARCH" $STD go build -trimpath -ldflags "-s -w" -o "/opt/networkoptimizer/publish/tools/uwnspeedtest-linux-${SERVER_ARCH}" .

install/networkoptimizer-install.sh

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,9 +45,7 @@ msg_ok "Built NetworkOptimizer"
4545
msg_info "Building Speed Test Binaries"
4646
mkdir -p /opt/networkoptimizer/publish/tools
4747
cd /opt/networkoptimizer/src/uwnspeedtest
48-
# UniFi gateways are always arm64, so the gateway binary is built for arm64
4948
CGO_ENABLED=0 GOOS=linux GOARCH=arm64 $STD go build -trimpath -ldflags "-s -w" -o /opt/networkoptimizer/publish/tools/uwnspeedtest-linux-arm64 .
50-
# The "Run Test from Server" binary must match the container architecture
5149
SERVER_ARCH="$(arch_resolve)"
5250
if [[ "$SERVER_ARCH" != "arm64" ]]; then
5351
CGO_ENABLED=0 GOOS=linux GOARCH="$SERVER_ARCH" $STD go build -trimpath -ldflags "-s -w" -o "/opt/networkoptimizer/publish/tools/uwnspeedtest-linux-${SERVER_ARCH}" .

0 commit comments

Comments
 (0)