#!/bin/bash

echo "Generating credits file..."

npx generate-license-file --ci --no-spinner --input www/package.json --output license-credits.txt --overwrite

cp www/pages/credits.template.html www/pages/credits.html
sed -e "/{{credits}}/r license-credits.txt" -e "/{{credits}}/d" -i www/pages/credits.html
