From e120d941ead9465cba35208cd6e6e0f5489ea3d8 Mon Sep 17 00:00:00 2001 From: Kyle Mohr <6644803+kylefmohr@users.noreply.github.com> Date: Thu, 19 Oct 2023 19:51:19 -0500 Subject: [PATCH] finally customizing the repo for the Mac installation --- rmmagent-macos.sh | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 rmmagent-macos.sh diff --git a/rmmagent-macos.sh b/rmmagent-macos.sh new file mode 100644 index 0000000..feb8271 --- /dev/null +++ b/rmmagent-macos.sh @@ -0,0 +1,14 @@ + +#!/bin/zsh +if [ "which brew" == "" ]; then + echo "Installing Homebrew" + /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" +fi +brew install golang + +env CGO_ENABLED=0 GOOS=darwin GOARCH=amd64 go build -ldflags "-s -w" -o ./rmmagent-macos-amd64 +env CGO_ENABLED=0 GOOS=darwin GOARCH=arm64 go build -ldflags "-s -w" -o ./rmmagent-macos-arm64 +chmod +x ./rmmagent-macos-amd64 +chmod +x ./rmmagent-macos-arm64 + +echo "Done! Make sure to read the installation instructions: https://github.com/kylefmohr/MacOSRMM-Script/tree/test-ci#installation-instructions"