Merging upstream version 0.8.13.
Signed-off-by: Daniel Baumann <daniel@debian.org>
This commit is contained in:
parent
4ccf9dc8f1
commit
bc0f764250
28 changed files with 556 additions and 76 deletions
8
build.sh
8
build.sh
|
@ -1,3 +1,9 @@
|
|||
#!/bin/sh
|
||||
|
||||
go build -o shoutrrr/ ./shoutrrr
|
||||
# Get Git information
|
||||
VERSION=$(git describe --tags --always --dirty 2>/dev/null || echo "unknown")
|
||||
COMMIT=$(git rev-parse --short HEAD 2>/dev/null || echo "unknown")
|
||||
DATE=$(git log -1 --format=%cd --date=iso | date -u +%Y-%m-%dT%H:%M:%SZ 2>/dev/null || echo "unknown")
|
||||
|
||||
# Build with ldflags
|
||||
go build -ldflags "-s -w -X github.com/nicholas-fedor/shoutrrr/internal/meta.Version=$VERSION -X github.com/nicholas-fedor/shoutrrr/internal/meta.Commit=$COMMIT -X github.com/nicholas-fedor/shoutrrr/internal/meta.Date=$DATE" -o shoutrrr ./shoutrrr
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue