dawenxi-tech / 2fa

A 2FA desktop application.
MIT License
2 stars 1 forks source link

amd64 and arm64 support #11

Closed gedw99 closed 9 months ago

gedw99 commented 9 months ago

Modify the Make file to produce both amd64 and arm64 outputs.

There is also a way to produce a binary that is both amr64 and amd64.

gedw99 commented 9 months ago

I can do this so it works locally and in ci.

heramerom commented 9 months ago

Thank you. I have try to build arm64 binary on my amd64 macos a few days ago. But some error occurs. It seems that the GO can't compile cross platform when CGO is enabled. I have no idea.

gedw99 commented 9 months ago

It does cross compile to windows and Mac for amd64 and arm64 for me on my m2 Mac. the make file does all this.

Have a try and let me know...

heramerom commented 9 months ago

Thank you for help, I will have a try.

gedw99 commented 9 months ago

ah I spoke too soon :)

On Mac when I try to build windows it fails. I must have been tired.

Anyways, you can toggle as you please in the Makefile build target and CI will respect it.

gedw99 commented 9 months ago

Amy closing this as we have multi arch working, just no windows yet.

gedw99 commented 9 months ago

Reach out if you get stuck @heramerom