TO 2023 REBRAND

This commit is contained in:
Bel LaPointe
2023-10-23 09:45:31 -06:00
parent 91799b978a
commit c739041642
10 changed files with 739 additions and 428 deletions

View File

@@ -8,20 +8,27 @@ cd src
echo PRINTING PDF
echo ...which google
which google-chrome-stable
echo ...which miniserve
bin=google-chrome-stable
if ! which $bin; then
bin=chromium
fi
which $bin
if ! which miniserve; then
wget -O $GOPATH/bin/miniserve https://github.com/svenstaro/miniserve/releases/download/v0.24.0/miniserve-0.24.0-x86_64-unknown-linux-musl
chmod +x $GOPATH/bin/miniserve
fi
which miniserve
miniserve ./homebrew/ &
miniserve -p 58080 ./homebrew/ &
pid=${!}
until curl localhost:8080; do sleep 5; done
google-chrome-stable \
until curl localhost:58080; do sleep 5; done
$bin \
--no-sandbox \
--headless \
--disable-gpu \
--print-to-pdf=./homebrew/homebrew.pdf \
--run-all-compositor-stages-before-draw \
--no-pdf-header-footer \
http://localhost:8080/homebrew.html
http://localhost:58080/homebrew.html
get_state() {
cksum ./homebrew/homebrew.pdf | awk '{print $1}'
}