Skip to content

Commit 3691f37

Browse files
committed
(macOS) fix: build script for WireGuard amd64
1 parent 66d6faa commit 3691f37

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

daemon/References/macOS/scripts/build-wireguard.sh

+4-2
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,9 @@ setup_go_env() {
2626

2727
# Get system architecture
2828
local ARCH="$(uname -m)"
29-
if [ "${ARCH}" != "x86_64" ] && [ "${ARCH}" != "arm64" ]; then
29+
if [ "${ARCH}" = "x86_64" ]; then
30+
ARCH="amd64"
31+
elif [ "${ARCH}" != "arm64" ]; then
3032
echo "ERROR: Unsupported architecture: ${ARCH}"
3133
exit 1
3234
fi
@@ -47,7 +49,7 @@ setup_go_env() {
4749
fi
4850

4951
# Use the temporary Go installation
50-
export PATH="${TEMP_GOROOT}/bin:$PATH"
52+
export PATH="${TEMP_GOROOT}/bin:${PATH}"
5153
export GOROOT="${TEMP_GOROOT}"
5254
export GOPATH="${TEMP_GOPATH}"
5355

0 commit comments

Comments
 (0)