From b5d437c92af5b9f516212e0f8dbba5e88fcce8b8 Mon Sep 17 00:00:00 2001 From: Andrey Meshkov Date: Fri, 24 Apr 2020 12:00:20 +0300 Subject: [PATCH] *: snapfile for edge channel builds --- .gitignore | 1 - build_snap.sh | 1 + snapcraft.yaml | 35 +++++++++++++++++++++++++++++++++++ 3 files changed, 36 insertions(+), 1 deletion(-) create mode 100644 snapcraft.yaml diff --git a/.gitignore b/.gitignore index 7b15eb29..77c43738 100644 --- a/.gitignore +++ b/.gitignore @@ -22,5 +22,4 @@ dnsfilter/tests/dnsfilter.TestLotsOfRules*.pprof *.snap launchpad_credentials snapcraft_login -snapcraft.yaml snapcraft.yaml.bak \ No newline at end of file diff --git a/build_snap.sh b/build_snap.sh index 7150b394..f44b950c 100755 --- a/build_snap.sh +++ b/build_snap.sh @@ -257,6 +257,7 @@ cleanup() { rm -f snapcraft.yaml rm -f snapcraft.yaml.bak rm -f snapcraft_login + git checkout snapcraft.yaml } ####################################### diff --git a/snapcraft.yaml b/snapcraft.yaml new file mode 100644 index 00000000..d2f4f375 --- /dev/null +++ b/snapcraft.yaml @@ -0,0 +1,35 @@ +# Note that this snapcraft.yaml file is used for automatic Edge channel builds ONLY! +# We use packaging/snap/snapcraft.yaml for beta and release builds +# Check out build_snap.sh for more details +name: adguard-home +base: core18 +version: 'edge' +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 + +parts: + adguard-home: + plugin: make + source: . + build-snaps: [ node/13/stable, go ] + build-packages: [ git, build-essential ] + override-build: | + make clean + make + cp AdGuardHome ${SNAPCRAFT_PART_INSTALL}/ +apps: + adguard-home: + command: AdGuardHome -w ${SNAP_DATA} --no-check-update + plugs: [ network-bind ] + daemon: simple + restart-condition: always \ No newline at end of file