From 225b84dde6e861fbd167f2e082f55bb7cb54e1c9 Mon Sep 17 00:00:00 2001 From: jonathan lung Date: Sat, 21 Nov 2020 01:56:14 -0500 Subject: [PATCH] Fix directory containing cross-compiled code. * Prior to this fix, the build script copied files out of a directory for the host platform; however, the build output directory's name is based on the target platform's directory. This commit corrects the source of the copy of build products. --- build.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build.sh b/build.sh index efc343e7..87e45ba7 100755 --- a/build.sh +++ b/build.sh @@ -35,7 +35,7 @@ IFS=$OLDIFS # Copy our OS/Arch to the bin/ directory echo "==> Copying binaries for this platform..." -DEV_PLATFORM="./pkg/$(go env GOOS)_$(go env GOARCH)" +DEV_PLATFORM="./pkg/${XC_OS}_${XC_ARCH}" for F in $(find ${DEV_PLATFORM} -mindepth 1 -maxdepth 1 -type f); do cp ${F} bin/ cp ${F} ${MAIN_GOPATH}/bin/