Add missing fonts, let build fail if a subbuild fails

This commit is contained in:
Pieter Vander Vennet 2022-02-06 12:31:58 +01:00
parent be67b397a3
commit 049736de89
4 changed files with 33 additions and 1 deletions

View file

@ -0,0 +1,24 @@
[
{
"path": "Amaranth-Regular.otf",
"license": "SIL Open Font License",
"authors": [
"Gesine Todt"
],
"sources": [
"https://allfont.net/download/amaranth-regular/",
"http://www.gesine-todt.de/"
]
},
{
"path": "OpenSans-Regular.ttf",
"license": "Apache License 2.0",
"authors": [
"Ascender"
],
"sources": [
"https://allfont.net/download/open-sans/",
"http://www.ascendercorp.com/typedesigners.html "
]
}
]

View file

@ -38,6 +38,10 @@ fi
echo -e "\n\n Building non-theme pages"
echo -e " ==========================\n\n"
parcel build --public-url "./" $SRC_MAPS "index.html" "404.html" "professional.html" "automaton.html" "import_helper.html" "import_viewer.html" "land.html" "customGenerator.html" "theme.html" vendor
if [ $? -ne 0 ]; then
echo "ERROR - stopping the build"
exit 1
fi
echo -e "\n\n Building theme pages"
echo -e " ======================\n\n"
@ -47,7 +51,11 @@ do
echo -e "\n\n $theme"
echo -e " ------------ \n\n"
# Builds the necessary files for just one theme, e.g. 'bookcases.html' + 'index_bookcases.ts' + supporting file
parcel build --public-url './' $SRC_MAPS "$theme.html"
parcel build --public-url './' $SRC_MAPS "$theme.html"
if [ $? -ne 0 ]; then
echo "ERROR - stopping the build"
exit 1
fi
done
# At last: a workaround; parcel 1.x borks the link to social images; the public-URL (./) is setup incorrectly, so we fix those
cd dist