TO 2023 REBRAND
This commit is contained in:
@@ -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}'
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user