thar we go
parent
12d21ba0f4
commit
76def1218c
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue