From 86392b604d83a4717804d4da920e68c3ccfe28a2 Mon Sep 17 00:00:00 2001 From: Gabrielle Roth Date: Thu, 15 Sep 2022 12:12:52 -0700 Subject: [PATCH] This fixes the 'Bad CPU type' error message on Monterey 12.5.1 --- build.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build.sh b/build.sh index 20de750..8f3ca63 100755 --- a/build.sh +++ b/build.sh @@ -59,7 +59,7 @@ if [[ -f $OSX_README ]]; then echo $workdir mkdir -p $workdir # Build the executable - GOOS=darwin GOARCH=386 go build -o "$workdir/$APPNAME" + GOOS=darwin GOARCH=arm64 go build -o "$workdir/$APPNAME" # Download pgrun to the work directory wget -O "$workdir/pgrun" "https://github.com/joncrlsn/pgrun/raw/master/bin-osx/pgrun" # Copy the bash runtime script to the temp directory