diff --git a/build.sh b/build.sh index f2772d5..afd60ab 100755 --- a/build.sh +++ b/build.sh @@ -5,6 +5,13 @@ set -e +ARCH=$(uname -m) +if [ ARCH == 'aarch64' ]; then + GOARCH="arm64" +else + GOARCH="amd64" +fi + base_name=GoReSym-3.0.1 cd lib-src/ @@ -16,7 +23,7 @@ cd $base_name/ echo Build GoReSym -go build && mv GoReSym GoReSym_lin +GOOS=linux go build && mv GoReSym GoReSym_lin strip GoReSym_lin cp GoReSym_lin ../../src/go_inspector/bin/ cd ..