Fix CGO stuff for sqlite

This commit is contained in:
Philipp Heckel 2021-11-03 11:46:24 -04:00
parent ecde123f1c
commit 60cbf23bcc
2 changed files with 2 additions and 3 deletions

View File

@ -4,11 +4,9 @@ before:
builds:
- binary: ntfy
env:
- CGO_ENABLED=0
- CGO_ENABLED=1 # required for go-sqlite3
goos:
- linux
- windows
- darwin
goarch:
- amd64
nfpms:

View File

@ -94,6 +94,7 @@ build-snapshot:
build-simple: clean
mkdir -p dist/ntfy_linux_amd64
export CGO_ENABLED=1
$(GO) build \
-o dist/ntfy_linux_amd64/ntfy \
-ldflags \