itchio / butler

🎩 Command-line itch.io helper
MIT License
751 stars 54 forks source link

Need arm64 support #224

Open simonSlamka opened 3 years ago

simonSlamka commented 3 years ago

Hey,

It would be awesome if butler supported arm64. There should be a build available for those of us who use arm64, which is the future.

Thanks

cosmotek commented 3 years ago

@simonSlamka I'm not involved in this project, but as far as I know, it should be really easy to create arm64 binaries. I've been working with Go for years, and unless there's some limitations specific to this project, compiling across platforms and architectures in Go is usually as simple as passing in different envs.

https://www.digitalocean.com/community/tutorials/how-to-build-go-executables-for-multiple-platforms-on-ubuntu-16-04

cosmotek commented 3 years ago

If you have Go installed, you should be able to install this binary on whatever system you're using. Just make sure to set your $GOBIN to something in your $PATH, and run go install <repo_url>

simonSlamka commented 2 years ago

@simonSlamka I'm not involved in this project, but as far as I know, it should be really easy to create arm64 binaries. I've been working with Go for years, and unless there's some limitations specific to this project, compiling across platforms and architectures in Go is usually as simple as passing in different envs.

https://www.digitalocean.com/community/tutorials/how-to-build-go-executables-for-multiple-platforms-on-ubuntu-16-04

If you have Go installed, you should be able to install this binary on whatever system you're using. Just make sure to set your $GOBIN to something in your $PATH, and run go install <repo_url>

Thanks man. I will try shortly and let you know.

graugraugrau commented 1 year ago

Are there any news on this one?

aycyang commented 1 year ago

As mentioned in https://github.com/itchio/itch/issues/2925, making an arm64 build of butler available on broth.itch.ovh would unblock releasing an arm64 build of the itch app.

cosmotek commented 1 year ago

To clarify my previous comment mentioning go install <repo_url>, I brought this up as an alternative option for those on ARM platforms. Rather than waiting for an ARM binary to be released, you should be able to use go install to "magically" compile and install the application in your system. Go will detect your platform and OS, and attempt to compile for that target automatically.

aycyang commented 1 year ago

Right, that approach is fine if you're using butler directly, but the itch app insists on downloading butler from itch's download server, even if you already have butler installed. It would be better if the itch app checked the system for an existing installation of butler first, but unfortunately it doesn't work that way right now, as far as I can tell. That could certainly change some day.