Skip to content

Conversation

@aycyang
Copy link

@aycyang aycyang commented May 1, 2023

The itch app queries the OS for its platform architecture in order to decide which builds of butler and itch-setup to download from broth.itch.ovh. There is a bit of ad-hoc logic in the itch app to translate the architecture string into the format used by Go, which is what butler and itch-setup are written in and packaged with. This ad-hoc logic did not recognize arm64 as a valid architecture, likely because broth.itch.ovh does not currently serve arm64 builds of butler and itch-setup. This commit prepares the itch app for a future where such builds are available.

The itch app queries the OS for its platform architecture in order to
decide which builds of butler and itch-setup to download from
broth.itch.ovh. There is a bit of ad-hoc logic in the itch app to
translate the architecture string into the format used by Go, which is
what butler and itch-setup are written in and packaged with. This ad-hoc
logic did not recognize arm64 as a valid architecture, likely because
broth.itch.ovh does not currently serve arm64 builds of butler and
itch-setup. This commit prepares the itch app for a future where such
builds are available.
@aycyang
Copy link
Author

aycyang commented May 1, 2023

In my manual local tests on my M1 Mac, observed the following behavior change:

Before:

ERROR (🔧 setup) setup got error: Error: Could not retrieve latest version of (butler):
got HTTP 404 while fetching (https://broth.itch.ovh/butler/darwin-unknown-head/LATEST)

After:

ERROR (🔧 setup) setup got error: Error: Could not retrieve latest version of (butler):
got HTTP 404 while fetching (https://broth.itch.ovh/butler/darwin-arm64-head/LATEST)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant