2020-07-10 12:57:53 +01:00
|
|
|
project_name: AdGuardHome
|
|
|
|
|
2020-07-09 09:53:41 +01:00
|
|
|
env:
|
|
|
|
- GO111MODULE=on
|
|
|
|
- GOPROXY=https://goproxy.io
|
|
|
|
|
|
|
|
before:
|
|
|
|
hooks:
|
|
|
|
- go mod download
|
|
|
|
- go generate ./...
|
|
|
|
|
|
|
|
builds:
|
2020-07-16 18:25:39 +01:00
|
|
|
- main: ./main.go
|
2020-07-09 09:53:41 +01:00
|
|
|
ldflags:
|
|
|
|
- -s -w -X main.version={{.Version}} -X main.channel={{.Env.CHANNEL}} -X main.goarm={{.Env.GOARM}}
|
|
|
|
env:
|
|
|
|
- CGO_ENABLED=0
|
|
|
|
goos:
|
|
|
|
- darwin
|
|
|
|
- linux
|
|
|
|
- freebsd
|
|
|
|
- windows
|
|
|
|
goarch:
|
|
|
|
- 386
|
|
|
|
- amd64
|
|
|
|
- arm
|
|
|
|
- arm64
|
2020-07-09 17:54:53 +01:00
|
|
|
- mips
|
|
|
|
- mipsle
|
|
|
|
- mips64
|
|
|
|
- mips64le
|
2020-07-09 09:53:41 +01:00
|
|
|
goarm:
|
2020-07-09 17:54:53 +01:00
|
|
|
- 5
|
2020-07-09 09:53:41 +01:00
|
|
|
- 6
|
|
|
|
- 7
|
2020-07-09 17:54:53 +01:00
|
|
|
gomips:
|
|
|
|
- softfloat
|
2020-07-09 09:53:41 +01:00
|
|
|
ignore:
|
|
|
|
- goos: freebsd
|
2020-07-09 17:54:53 +01:00
|
|
|
goarch: mips
|
2020-07-09 09:53:41 +01:00
|
|
|
- goos: freebsd
|
2020-07-09 17:54:53 +01:00
|
|
|
goarch: mipsle
|
2020-07-09 09:53:41 +01:00
|
|
|
|
|
|
|
archives:
|
2020-07-16 18:25:39 +01:00
|
|
|
- # Archive name template.
|
2020-07-09 17:54:53 +01:00
|
|
|
# Defaults:
|
|
|
|
# - if format is `tar.gz`, `tar.xz`, `gz` or `zip`:
|
|
|
|
# - `{{ .ProjectName }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}{{ if .Mips }}_{{ .Mips }}{{ end }}`
|
|
|
|
# - if format is `binary`:
|
|
|
|
# - `{{ .Binary }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}{{ if .Mips }}_{{ .Mips }}{{ end }}`
|
|
|
|
name_template: "{{ .ProjectName }}_{{ .Os }}_{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}{{ if .Mips }}_{{ .Mips }}{{ end }}"
|
|
|
|
wrap_in_directory: "AdGuardHome"
|
2020-07-09 09:53:41 +01:00
|
|
|
format_overrides:
|
|
|
|
- goos: windows
|
|
|
|
format: zip
|
2020-07-09 17:54:53 +01:00
|
|
|
- goos: darwin
|
|
|
|
format: zip
|
2020-07-09 09:53:41 +01:00
|
|
|
files:
|
|
|
|
- LICENSE.txt
|
|
|
|
- README.md
|
|
|
|
|
|
|
|
snapcrafts:
|
2020-07-16 18:25:39 +01:00
|
|
|
- name: adguard-home
|
2020-07-09 09:53:41 +01:00
|
|
|
base: core18
|
|
|
|
name_template: '{{ .ProjectName }}_{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}'
|
|
|
|
summary: Network-wide ads & trackers blocking DNS server
|
|
|
|
description: |
|
|
|
|
AdGuard Home is a network-wide software for blocking ads & tracking. After
|
|
|
|
you set it up, it'll cover ALL your home devices, and you don't need any
|
|
|
|
client-side software for that.
|
|
|
|
|
|
|
|
It operates as a DNS server that re-routes tracking domains to a "black hole,"
|
|
|
|
thus preventing your devices from connecting to those servers. It's based
|
|
|
|
on software we use for our public AdGuard DNS servers -- both share a lot
|
|
|
|
of common code.
|
|
|
|
grade: stable
|
|
|
|
confinement: strict
|
2020-07-09 17:54:53 +01:00
|
|
|
publish: false
|
2020-07-09 09:53:41 +01:00
|
|
|
license: GPL-3.0
|
2020-07-16 18:25:39 +01:00
|
|
|
extra_files:
|
|
|
|
- source: scripts/snap/local/adguard-home-web.sh
|
|
|
|
destination: adguard-home-web.sh
|
|
|
|
mode: 0755
|
|
|
|
- source: scripts/snap/gui/adguard-home-web.desktop
|
|
|
|
destination: meta/gui/adguard-home-web.desktop
|
|
|
|
mode: 0644
|
|
|
|
- source: scripts/snap/gui/adguard-home-web.png
|
|
|
|
destination: meta/gui/adguard-home-web.png
|
|
|
|
mode: 0644
|
2020-07-09 09:53:41 +01:00
|
|
|
apps:
|
|
|
|
adguard-home:
|
2020-07-10 12:57:53 +01:00
|
|
|
command: AdGuardHome -w $SNAP_DATA --no-check-update
|
2020-07-09 09:53:41 +01:00
|
|
|
plugs: [ network-bind ]
|
|
|
|
daemon: simple
|
2020-07-16 18:25:39 +01:00
|
|
|
adguard-home-web:
|
|
|
|
command: adguard-home-web.sh
|
|
|
|
plugs: [ desktop ]
|
2020-07-09 09:53:41 +01:00
|
|
|
|
|
|
|
checksum:
|
|
|
|
name_template: 'checksums.txt'
|