SR-G / watchthatpage

Command line utility allowing to monitor remote web pages and trigger mail notifications when some modifications are detected.
Apache License 2.0
80 stars 11 forks source link

How to build #6

Closed plangin closed 4 years ago

plangin commented 4 years ago

Can someone please provide the steps how to build this tool in Raspbian / Debian.

The Docker steps provided in the readme do not apply. ;-)

Thanks!

plangin commented 4 years ago

OK, so I found out the necessary steps myself:

  1. Install Go language and wkhtmltojpg (part of wkhtmltopdf, needed to create thumbnails in email notifications

sudo apt-get install golfing wkhtmltopdf

  1. Download source code from GitHub

git clone https://github.com/SR-G/watchthatpage.git

  1. Download all dependencies

go get -d ./...

  1. Compile

go install -ldflags "-d -s -w -X tensin.org/watchthatpage/core.Build=git rev-parse HEAD" -a -tags netgo -installsuffix netgo tensin.org/watchthatpage