Code Monkey home page Code Monkey logo

Comments (2)

kajukenbo avatar kajukenbo commented on June 10, 2024

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

from recursive.

arrowtype avatar arrowtype commented on June 10, 2024

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.

from recursive.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.