|
@@ -1,76 +1,70 @@
|
|
|
|
|
+version: 2
|
|
|
before:
|
|
before:
|
|
|
hooks:
|
|
hooks:
|
|
|
- go mod download
|
|
- go mod download
|
|
|
- go mod tidy
|
|
- go mod tidy
|
|
|
builds:
|
|
builds:
|
|
|
- -
|
|
|
|
|
- id: ntfy_linux_amd64
|
|
|
|
|
|
|
+ - id: ntfy_linux_amd64
|
|
|
binary: ntfy
|
|
binary: ntfy
|
|
|
env:
|
|
env:
|
|
|
- CGO_ENABLED=1 # required for go-sqlite3
|
|
- CGO_ENABLED=1 # required for go-sqlite3
|
|
|
- tags: [sqlite_omit_load_extension,osusergo,netgo]
|
|
|
|
|
|
|
+ tags: [ sqlite_omit_load_extension,osusergo,netgo ]
|
|
|
ldflags:
|
|
ldflags:
|
|
|
- "-linkmode=external -extldflags=-static -s -w -X main.version={{.Version}} -X main.commit={{.Commit}} -X main.date={{.Date}}"
|
|
- "-linkmode=external -extldflags=-static -s -w -X main.version={{.Version}} -X main.commit={{.Commit}} -X main.date={{.Date}}"
|
|
|
- goos: [linux]
|
|
|
|
|
- goarch: [amd64]
|
|
|
|
|
- -
|
|
|
|
|
- id: ntfy_linux_armv6
|
|
|
|
|
|
|
+ goos: [ linux ]
|
|
|
|
|
+ goarch: [ amd64 ]
|
|
|
|
|
+ - id: ntfy_linux_armv6
|
|
|
binary: ntfy
|
|
binary: ntfy
|
|
|
env:
|
|
env:
|
|
|
- CGO_ENABLED=1 # required for go-sqlite3
|
|
- CGO_ENABLED=1 # required for go-sqlite3
|
|
|
- CC=arm-linux-gnueabi-gcc # apt install gcc-arm-linux-gnueabi
|
|
- CC=arm-linux-gnueabi-gcc # apt install gcc-arm-linux-gnueabi
|
|
|
- tags: [sqlite_omit_load_extension,osusergo,netgo]
|
|
|
|
|
|
|
+ tags: [ sqlite_omit_load_extension,osusergo,netgo ]
|
|
|
ldflags:
|
|
ldflags:
|
|
|
- "-linkmode=external -extldflags=-static -s -w -X main.version={{.Version}} -X main.commit={{.Commit}} -X main.date={{.Date}}"
|
|
- "-linkmode=external -extldflags=-static -s -w -X main.version={{.Version}} -X main.commit={{.Commit}} -X main.date={{.Date}}"
|
|
|
- goos: [linux]
|
|
|
|
|
- goarch: [arm]
|
|
|
|
|
- goarm: [6]
|
|
|
|
|
- -
|
|
|
|
|
- id: ntfy_linux_armv7
|
|
|
|
|
|
|
+ goos: [ linux ]
|
|
|
|
|
+ goarch: [ arm ]
|
|
|
|
|
+ goarm: [ 6 ]
|
|
|
|
|
+ - id: ntfy_linux_armv7
|
|
|
binary: ntfy
|
|
binary: ntfy
|
|
|
env:
|
|
env:
|
|
|
- CGO_ENABLED=1 # required for go-sqlite3
|
|
- CGO_ENABLED=1 # required for go-sqlite3
|
|
|
- CC=arm-linux-gnueabi-gcc # apt install gcc-arm-linux-gnueabi
|
|
- CC=arm-linux-gnueabi-gcc # apt install gcc-arm-linux-gnueabi
|
|
|
- tags: [sqlite_omit_load_extension,osusergo,netgo]
|
|
|
|
|
|
|
+ tags: [ sqlite_omit_load_extension,osusergo,netgo ]
|
|
|
ldflags:
|
|
ldflags:
|
|
|
- "-linkmode=external -extldflags=-static -s -w -X main.version={{.Version}} -X main.commit={{.Commit}} -X main.date={{.Date}}"
|
|
- "-linkmode=external -extldflags=-static -s -w -X main.version={{.Version}} -X main.commit={{.Commit}} -X main.date={{.Date}}"
|
|
|
- goos: [linux]
|
|
|
|
|
- goarch: [arm]
|
|
|
|
|
- goarm: [7]
|
|
|
|
|
- -
|
|
|
|
|
- id: ntfy_linux_arm64
|
|
|
|
|
|
|
+ goos: [ linux ]
|
|
|
|
|
+ goarch: [ arm ]
|
|
|
|
|
+ goarm: [ 7 ]
|
|
|
|
|
+ - id: ntfy_linux_arm64
|
|
|
binary: ntfy
|
|
binary: ntfy
|
|
|
env:
|
|
env:
|
|
|
- CGO_ENABLED=1 # required for go-sqlite3
|
|
- CGO_ENABLED=1 # required for go-sqlite3
|
|
|
- CC=aarch64-linux-gnu-gcc # apt install gcc-aarch64-linux-gnu
|
|
- CC=aarch64-linux-gnu-gcc # apt install gcc-aarch64-linux-gnu
|
|
|
- tags: [sqlite_omit_load_extension,osusergo,netgo]
|
|
|
|
|
|
|
+ tags: [ sqlite_omit_load_extension,osusergo,netgo ]
|
|
|
ldflags:
|
|
ldflags:
|
|
|
- "-linkmode=external -extldflags=-static -s -w -X main.version={{.Version}} -X main.commit={{.Commit}} -X main.date={{.Date}}"
|
|
- "-linkmode=external -extldflags=-static -s -w -X main.version={{.Version}} -X main.commit={{.Commit}} -X main.date={{.Date}}"
|
|
|
- goos: [linux]
|
|
|
|
|
- goarch: [arm64]
|
|
|
|
|
- -
|
|
|
|
|
- id: ntfy_windows_amd64
|
|
|
|
|
|
|
+ goos: [ linux ]
|
|
|
|
|
+ goarch: [ arm64 ]
|
|
|
|
|
+ - id: ntfy_windows_amd64
|
|
|
binary: ntfy
|
|
binary: ntfy
|
|
|
env:
|
|
env:
|
|
|
- CGO_ENABLED=0 # explicitly disable, since we don't need go-sqlite3
|
|
- CGO_ENABLED=0 # explicitly disable, since we don't need go-sqlite3
|
|
|
- tags: [noserver] # don't include server files
|
|
|
|
|
|
|
+ tags: [ noserver ] # don't include server files
|
|
|
ldflags:
|
|
ldflags:
|
|
|
- "-X main.version={{.Version}} -X main.commit={{.Commit}} -X main.date={{.Date}}"
|
|
- "-X main.version={{.Version}} -X main.commit={{.Commit}} -X main.date={{.Date}}"
|
|
|
- goos: [windows]
|
|
|
|
|
- goarch: [amd64]
|
|
|
|
|
- -
|
|
|
|
|
- id: ntfy_darwin_all
|
|
|
|
|
|
|
+ goos: [ windows ]
|
|
|
|
|
+ goarch: [ amd64 ]
|
|
|
|
|
+ - id: ntfy_darwin_all
|
|
|
binary: ntfy
|
|
binary: ntfy
|
|
|
env:
|
|
env:
|
|
|
- CGO_ENABLED=0 # explicitly disable, since we don't need go-sqlite3
|
|
- CGO_ENABLED=0 # explicitly disable, since we don't need go-sqlite3
|
|
|
- tags: [noserver] # don't include server files
|
|
|
|
|
|
|
+ tags: [ noserver ] # don't include server files
|
|
|
ldflags:
|
|
ldflags:
|
|
|
- "-X main.version={{.Version}} -X main.commit={{.Commit}} -X main.date={{.Date}}"
|
|
- "-X main.version={{.Version}} -X main.commit={{.Commit}} -X main.date={{.Date}}"
|
|
|
- goos: [darwin]
|
|
|
|
|
- goarch: [amd64, arm64] # will be combined to "universal binary" (see below)
|
|
|
|
|
|
|
+ goos: [ darwin ]
|
|
|
|
|
+ goarch: [ amd64, arm64 ] # will be combined to "universal binary" (see below)
|
|
|
nfpms:
|
|
nfpms:
|
|
|
- -
|
|
|
|
|
- package_name: ntfy
|
|
|
|
|
|
|
+ - package_name: ntfy
|
|
|
homepage: https://heckel.io/ntfy
|
|
homepage: https://heckel.io/ntfy
|
|
|
maintainer: Philipp C. Heckel <philipp.heckel@gmail.com>
|
|
maintainer: Philipp C. Heckel <philipp.heckel@gmail.com>
|
|
|
description: Simple pub-sub notification service
|
|
description: Simple pub-sub notification service
|
|
@@ -106,9 +100,8 @@ nfpms:
|
|
|
preremove: "scripts/prerm.sh"
|
|
preremove: "scripts/prerm.sh"
|
|
|
postremove: "scripts/postrm.sh"
|
|
postremove: "scripts/postrm.sh"
|
|
|
archives:
|
|
archives:
|
|
|
- -
|
|
|
|
|
- id: ntfy_linux
|
|
|
|
|
- builds:
|
|
|
|
|
|
|
+ - id: ntfy_linux
|
|
|
|
|
+ ids:
|
|
|
- ntfy_linux_amd64
|
|
- ntfy_linux_amd64
|
|
|
- ntfy_linux_armv6
|
|
- ntfy_linux_armv6
|
|
|
- ntfy_linux_armv7
|
|
- ntfy_linux_armv7
|
|
@@ -122,19 +115,17 @@ archives:
|
|
|
- client/client.yml
|
|
- client/client.yml
|
|
|
- client/ntfy-client.service
|
|
- client/ntfy-client.service
|
|
|
- client/user/ntfy-client.service
|
|
- client/user/ntfy-client.service
|
|
|
- -
|
|
|
|
|
- id: ntfy_windows
|
|
|
|
|
- builds:
|
|
|
|
|
|
|
+ - id: ntfy_windows
|
|
|
|
|
+ ids:
|
|
|
- ntfy_windows_amd64
|
|
- ntfy_windows_amd64
|
|
|
- format: zip
|
|
|
|
|
|
|
+ formats: [ zip ]
|
|
|
wrap_in_directory: true
|
|
wrap_in_directory: true
|
|
|
files:
|
|
files:
|
|
|
- LICENSE
|
|
- LICENSE
|
|
|
- README.md
|
|
- README.md
|
|
|
- client/client.yml
|
|
- client/client.yml
|
|
|
- -
|
|
|
|
|
- id: ntfy_darwin
|
|
|
|
|
- builds:
|
|
|
|
|
|
|
+ - id: ntfy_darwin
|
|
|
|
|
+ ids:
|
|
|
- ntfy_darwin_all
|
|
- ntfy_darwin_all
|
|
|
wrap_in_directory: true
|
|
wrap_in_directory: true
|
|
|
files:
|
|
files:
|
|
@@ -142,14 +133,13 @@ archives:
|
|
|
- README.md
|
|
- README.md
|
|
|
- client/client.yml
|
|
- client/client.yml
|
|
|
universal_binaries:
|
|
universal_binaries:
|
|
|
- -
|
|
|
|
|
- id: ntfy_darwin_all
|
|
|
|
|
|
|
+ - id: ntfy_darwin_all
|
|
|
replace: true
|
|
replace: true
|
|
|
name_template: ntfy
|
|
name_template: ntfy
|
|
|
checksum:
|
|
checksum:
|
|
|
name_template: 'checksums.txt'
|
|
name_template: 'checksums.txt'
|
|
|
snapshot:
|
|
snapshot:
|
|
|
- name_template: "{{ .Tag }}-next"
|
|
|
|
|
|
|
+ version_template: "{{ .Tag }}-next"
|
|
|
changelog:
|
|
changelog:
|
|
|
sort: asc
|
|
sort: asc
|
|
|
filters:
|
|
filters:
|