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

Fetch the binary and don't require a rust toolchain #18

Open
rsheeter opened this issue May 22, 2024 · 1 comment
Open

Fetch the binary and don't require a rust toolchain #18

rsheeter opened this issue May 22, 2024 · 1 comment
Assignees

Comments

@rsheeter
Copy link

Use published binary of compiler. That should mean we don't need a rust toolchain.

@rsheeter
Copy link
Author

rsheeter commented May 22, 2024

As far as I can tell releases/latest redirects but the download url doesn't support use of latest as a version so you end up with something like:

latest=$(curl -D - -s 'https://github.com/googlefonts/fontc/releases/latest' | grep location | awk -F/ '{sub(/[ \t\r\n]+/, "", $NF); print $NF}')
# GH redirects us to an objects.githubusercontent.com url so we have to follow redirects
curl -LJO "https://github.com/googlefonts/fontc/releases/download/${latest}/fontc-x86_64-unknown-linux-musl.tar.gz"

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

2 participants