Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

support for apple silicon #23

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# XOAuth
# XOAuth - apple silicon m1 build included manually

> Get OpenId Connect tokens from the command line

Expand All @@ -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:
Expand All @@ -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
Expand Down
6 changes: 4 additions & 2 deletions build.sh
Original file line number Diff line number Diff line change
@@ -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