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

Inconsistent architecture naming #8

Open
kamermans opened this issue Jan 4, 2023 · 0 comments
Open

Inconsistent architecture naming #8

kamermans opened this issue Jan 4, 2023 · 0 comments

Comments

@kamermans
Copy link

In your binary releases, you release binaries for amd64 and aarch64, but these are two different naming conventions, so pulling the correct binary programmatically is unnecessarily difficult.

I would recommend you use either amd64 and arm64 (the output of dpkg --print-architecture on debian) or x86_64 and aarch64 (the output of uname -m on most/all Linux machines).

That way people can write scripts like this:

curl -sSL -o /tmp/curl "https://github.com/moparisthebest/static-curl/releases/download/v7.87.0/curl-$(dpkg --print-architecture)"

OR

curl -sSL -o /tmp/curl "https://github.com/moparisthebest/static-curl/releases/download/v7.87.0/curl-$(uname -m)"

At the moment I have to use this:

ARCH=$(dpkg --print-architecture)
if [[ $ARCH = 'arm64' ]]; then
    ARCH=aarch64
fi

curl -sSL -o /tmp/curl "https://github.com/moparisthebest/static-curl/releases/download/v7.87.0/curl-$ARCH"
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

No branches or pull requests

1 participant