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

Consider Link to point "latest" branch to the most current Zip download #516

Open
kajukenbo opened this issue Mar 6, 2023 · 2 comments
Open

Comments

@kajukenbo
Copy link

kajukenbo commented Mar 6, 2023

Per title, consider a direct link that always points to the most recent public release to more easily keep the fonts up to date.

curl -LO https://github.com/arrowtype/recursive/releases/download/latest/ArrowType-Recursive-latest.zip
vs
curl -LO https://github.com/arrowtype/recursive/releases/download/v1.085/ArrowType-Recursive-1.085.zip

Perhaps such a link exists already? If so, I was not able to find it.

Just a suggestion.
Thanks for the font and all of your hard work

@kajukenbo
Copy link
Author

kajukenbo commented Mar 6, 2023

Example of how I pull and extract the "latest" Mono Linear Static otf fonts now, in case it is of use to anyone

cd $HOME/Downloads/
echo "Checking for Recursive Font and version"
rm -f latest

until [ -s latest ]
do
    curl -LO https://github.com/arrowtype/recursive/releases/latest
done

VER=$(grep release $HOME/Downloads/latest | awk -F\" '/src=/ { print $(NF-1) }' | awk -F\/ '{ print $NF }' | sed 's/^v//' )
echo "Current Recursive version seems to be ${VER}"
FONTS=$HOME/Downloads/ArrowType-Recursive-${VER}
if [ ! -d ${FONTS} ]
then
    cd $HOME/Downloads/
    echo "Trying to download font ArrowType-Recursive-${VER}.zip"
    curl -LO  https://github.com/arrowtype/recursive/releases/download/v${VER}/ArrowType-Recursive-${VER}.zip
    echo "Attempting archive extraction"
    unzip -u ArrowType-Recursive-${VER}.zip
fi

cd ${FONTS}

if [ ! -d /usr/share/fonts/opentype/recursive ]
then
    sudo mkdir -p /usr/share/fonts/opentype/recursive
    find ${FONTS} -type f -name "*MonoLnrSt*otf" -exec sudo cp -va {} /usr/share/fonts/opentype/recursive \;
    find ${FONTS} -type f -name "LICENSE.txt" -exec sudo cp -va {} /usr/share/fonts/opentype/recursive \;
    sudo chmod -R 755 /usr/share/fonts/opentype/recursive
    sudo fc-cache -f
else
    du -sh /usr/share/fonts/opentype/recursive
fi

@arrowtype
Copy link
Owner

Hey @kajukenbo, thanks for taking time to share this insight!

My main reason for including the version number in the zip download is to help make people aware of different versions they may have downloaded. I wish GitHub would have some kind of a URL that could easily be used to point to the main zip download of the latest release, but I don’t think they do...

I may adjust my releases to use a consistent zip folder naming scheme, as it is annoying to have to manually update the font minisite when I make a new release.

I’ll leave this open as a reminder to probably change the zip naming in the future.

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