finally customizing the repo for the Mac installation
This commit is contained in:
parent
00c23190bb
commit
e120d941ea
14
rmmagent-macos.sh
Normal file
14
rmmagent-macos.sh
Normal file
@ -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"
|
Loading…
Reference in New Issue
Block a user