16 lines
500 B
Bash
Executable file
16 lines
500 B
Bash
Executable file
# Install the fonts we need for the covers.
|
|
if [ "x$CI" == "x" ]
|
|
then
|
|
echo "not in CI environment, not installing fonts"
|
|
else
|
|
echo "installing fonts"
|
|
mkdir -p ~/.local/share/fonts
|
|
cp $(nix-build --no-out-link '<nixpkgs>' -A source-serif-pro)/share/fonts/opentype/*.otf ~/.local/share/fonts
|
|
cp $(nix-build --no-out-link '<nixpkgs>' -A source-sans-pro)/share/fonts/opentype/*.otf ~/.local/share/fonts
|
|
fc-cache
|
|
fc-list | grep -i source
|
|
fi
|
|
|
|
echo "installing node packages"
|
|
npm install --ci
|