install-twemoji-assets.sh
1 #!/bin/bash 2 # Download the Twemoji SVGs and put them into public/twemoji. 3 4 set -Eeou pipefail 5 version="$(node -e 'console.log(require("twemoji/package.json").version)')" 6 echo "Installing Twemoji SVG assets v${version}" 7 8 curl -sSL "https://github.com/twitter/twemoji/archive/refs/tags/v${version}.tar.gz" \ 9 | tar -x -z -C static/twemoji/ --strip-components=3 "twemoji-${version}/assets/svg"