Add web launcher for desktop users
This commit is contained in:
8
snap/gui/adguard-home-web.desktop
Normal file
8
snap/gui/adguard-home-web.desktop
Normal file
@@ -0,0 +1,8 @@
|
||||
[Desktop Entry]
|
||||
Type=Application
|
||||
Encoding=UTF-8
|
||||
Name=AdGuard Home
|
||||
Comment=Network-wide ads & trackers blocking DNS server
|
||||
Exec=adguard-home.adguard-home-web
|
||||
Icon=${SNAP}/meta/gui/adguard-home-web.png
|
||||
Terminal=false
|
||||
BIN
snap/gui/adguard-home-web.png
Normal file
BIN
snap/gui/adguard-home-web.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 1.6 KiB |
10
snap/local/adguard-home-web.sh
Executable file
10
snap/local/adguard-home-web.sh
Executable file
@@ -0,0 +1,10 @@
|
||||
#!/bin/bash
|
||||
# Get admin tool port from configuration
|
||||
bind_port=$(grep bind_port $SNAP_DATA/AdGuardHome.yaml | awk -F ' ' '{print $2}')
|
||||
|
||||
if [ -z "$bind_port"]; then
|
||||
xdg-open http://localhost:3000
|
||||
else
|
||||
xdg-open http://localhost:$bind_port
|
||||
fi
|
||||
|
||||
47
snap/snapcraft.yaml
Normal file
47
snap/snapcraft.yaml
Normal file
@@ -0,0 +1,47 @@
|
||||
# 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
|
||||
|
||||
architectures:
|
||||
- build-on: amd64
|
||||
- build-on: armhf
|
||||
- build-on: i386
|
||||
- build-on: arm64
|
||||
|
||||
parts:
|
||||
web-launcher:
|
||||
plugin: dump
|
||||
source: snap/local
|
||||
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
|
||||
adguard-home-web:
|
||||
command: adguard-home-web.sh
|
||||
plugs: [desktop]
|
||||
Reference in New Issue
Block a user