thar we go

main
Bel LaPointe 2023-10-19 09:27:03 -06:00
parent 12d21ba0f4
commit 76def1218c
1 changed files with 18 additions and 23 deletions

View File

@ -13,14 +13,6 @@ if which vale; then
vale $f || true
fi
if tty && ! which firebase; then
f="$(mktemp)"
wget https://firebase.tools -O - > "$f"
export upgrade=true
sudo bash "$f"
fi
which firebase
outdir=$(mktemp -d)
cleanup() {
rm -rf "$outdir"
@ -31,9 +23,10 @@ rm -rf $outdir
mkdir -p $outdir/public
cp homebrew/homebrew.html $outdir/public/index.html
cp -r ./homebrew/fonts $outdir/public/
if which google-chrome-stable; then
echo PRINTING PDF
google-chrome-stable \
echo PRINTING PDF
which google-chrome-stable
google-chrome-stable \
--no-sandbox \
--headless \
--disable-gpu \
@ -41,11 +34,6 @@ if which google-chrome-stable; then
--run-all-compositor-stages-before-draw \
--no-pdf-header-footer \
$outdir/public/index.html
else
cp homebrew/homebrew.pdf $outdir/public/BreeLaPointeResume.pdf
fi
cat $outdir/public/BreeLaPointeResume.pdf | base64 | tr -d '\n'; echo
false
(
if ! which woff2_compress; then
@ -70,6 +58,13 @@ false
du -sh "$outdir/public/fonts/"*
)
if tty && ! which firebase; then
f="$(mktemp)"
wget https://firebase.tools -O - > "$f"
export upgrade=true
sudo bash "$f"
fi
which firebase
cp -r ../firebase.json ../.firebaserc ../.firebase $outdir/
sed -i "s#deploy/public#public#" $outdir/firebase.json
cd $outdir