From aff164354381b2fff2a5159bb9c70b82becda43e Mon Sep 17 00:00:00 2001 From: Tobias Tilhof Date: Sat, 24 Apr 2021 16:36:07 +0200 Subject: [PATCH 1/2] support for apple silicon successfully built on m1 chip. --- build.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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 - From e4406ebce808747f20aa774387269f1cadc3006d Mon Sep 17 00:00:00 2001 From: tobias Date: Sun, 25 Apr 2021 17:12:30 +0200 Subject: [PATCH 2/2] update readme --- README.md | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) 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