cloudflared icon indicating copy to clipboard operation
cloudflared copied to clipboard

Publish version for Apple Silicon chip

Open sanglt opened this issue 4 years ago • 3 comments

Hi team,

I set up Cloudflare Access for our SSH server and currently no official binary for Apple Silicon chip. After installing from homebrew:

❯ brew install cloudflare/cloudflare/cloudflared
❯ cloudflared
zsh: bad CPU type in executable: cloudflared

I tried to clone the repo and run make cloudflared, the binary is working with Mac M1:

❯ arch
arm64
❯ make cloudflared
GOOS=darwin GOARCH=arm64 go build -v -mod=vendor  -ldflags='-X "main.Version=2021.12.1-3-g70e675f4" -X "main.BuildTime=2021-12-20-2346 UTC" ' github.com/cloudflare/cloudflared/cmd/cloudflared
❯ ./cloudflared version
cloudflared version 2021.12.1-3-g70e675f4 (built 2021-12-20-2346 UTC)

I tried to make a PR but the current Team City setup for MacOS is hard for outside people contributing.

Thanks,

sanglt avatar Dec 20 '21 23:12 sanglt

see also this comment from june, no news since then unfortunately...

frusznyak avatar Dec 25 '21 16:12 frusznyak

Just realized that the Homebrew-maintained formula do support ARM64

So while Cloudflare documents to use their own formula with brew install cloudflare/cloudflare/cloudflared, we can just brew install cloudflared and get a native binary!

valeriangalliat avatar May 18 '22 14:05 valeriangalliat

Correct, we have started publishing to brew-core , with a lot of hiccups in every release, and even now that's closed to polished it still requires someone to manually open the PR and some brew-core maintainer to approve it. So it's not great and not as automated as our own custom formula. But the underlying binaries are backed up by the same build process on our end, so they are safe to be used.

nmldiegues avatar May 18 '22 14:05 nmldiegues