diff --git a/README.md b/README.md index 9b04306..1c00b8a 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# XOAuth +# XOAuth - apple silicon m1 build included manually > Get OpenId Connect tokens from the command line @@ -22,7 +22,8 @@ This tool saves you time, by: ## Installation Download the binary for your platform: * [Linux](https://github.com/XeroAPI/xoauth/releases/download/v1.1.0/xoauth_1.1.0_linux_amd64.tar.gz) -* [Mac OS](https://github.com/XeroAPI/xoauth/releases/download/v1.1.0/xoauth_1.1.0_darwin_amd64.tar.gz) +* [Mac OS x86_64](https://github.com/XeroAPI/xoauth/releases/download/v1.1.0/xoauth_1.1.0_darwin_amd64.tar.gz) +* [Mac OS arm64](https://github.com/tilhoft/xoauth/releases/download/v1.1.0_m1/xoauth_1.1.0_darwin_arm64.tar.gz) * [Windows](https://github.com/XeroAPI/xoauth/releases/download/v1.1.0/xoauth_1.1.0_windows_amd64.tar.gz) You can run the binary directly: @@ -37,7 +38,7 @@ Or add it to your OS `PATH`: mv xoauth /usr/local/bin/xoauth && chmod +x /usr/local/bin/xoauth ``` -Alternatively you can use `brew` on Mac OS: +Alternatively you can use `brew` on Mac OS for x86: ``` brew tap xeroapi/homebrew-taps diff --git a/build.sh b/build.sh index e945cab..500c7cf 100755 --- a/build.sh +++ b/build.sh @@ -1,13 +1,15 @@ # Windows 64 bit env GOOS=windows GOARCH=amd64 go build -ldflags="-s -w" -o build/windows/xoauth.exe -# Mac OS 64 bit +# Mac OS x86 64 bit env GOOS=darwin GOARCH=amd64 go build -ldflags="-s -w" -o build/darwin/xoauth +# Mac OS arm64 +env GOOS=darwin GOARCH=arm64 go build -ldflags="-s -w" -o build/darwin/xoauth + # Linux 64 bit env GOOS=linux GOARCH=amd64 go build -ldflags="-s -w" -o build/linux/xoauth chmod +x build/linux/xoauth chmod +x build/darwin/xoauth chmod +x build/windows/xoauth.exe -