Added the software version to the mail default template and cli help text, updated README and build script

This commit is contained in:
ChaoticByte 2024-07-22 19:55:44 +02:00
parent e9f39d25b4
commit 9f31bf557d
No known key found for this signature in database
6 changed files with 33 additions and 17 deletions

View file

@ -2,14 +2,13 @@
VERSION=$(git describe --tags)
# i386
GOOS=linux GOARCH=386 go build -o dist/wid-notifier_${VERSION}_linux_i386
function build() {
printf "Compiling version ${VERSION} for ${1}/${2}\t"
GOOS=${1} GOARCH=${2} go build -ldflags "-X 'main.Version=${VERSION}'" -o dist/wid-notifier_${VERSION}_${1}_${3}
echo "✅"
}
# amd64
GOOS=linux GOARCH=amd64 go build -o dist/wid-notifier_${VERSION}_linux_amd64
# arm
GOOS=linux GOARCH=arm go build -o dist/wid-notifier_${VERSION}_linux_arm
# arm64
GOOS=linux GOARCH=arm64 go build -o dist/wid-notifier_${VERSION}_linux_arm64
build linux "386" i386
build linux amd64 amd64
build linux arm arm
build linux arm64 arm64