Skip to content

Commit

Permalink
epm play: added netbird
Browse files Browse the repository at this point in the history
  • Loading branch information
CatSema authored and vitlav committed Mar 4, 2025
1 parent 126910b commit 8128924
Show file tree
Hide file tree
Showing 2 changed files with 58 additions and 0 deletions.
22 changes: 22 additions & 0 deletions play.d/netbird-ui.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
#!/bin/sh

PKGNAME=netbird-ui
SUPPORTEDARCHES="x86_64"
VERSION="$2"
DESCRIPTION="GUI for managing NetBird's WireGuard® overlay network."
URL="https://github.com/netbirdio/netbird"

. $(dirname $0)/common.sh

arch="$(epm print info -a)"
if [ "$arch" != "x86_64" ]; then
fatal "NetBird UI is only available for x86_64 architecture"
fi

if [ "$VERSION" = "*" ]; then
VERSION="$(get_github_tag https://github.com/netbirdio/netbird/)"
fi

PKGURL="https://github.com/netbirdio/netbird/releases/download/v${VERSION}/netbird-ui_${VERSION}_linux_amd64.deb"

install_pkgurl
36 changes: 36 additions & 0 deletions play.d/netbird.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
#!/bin/sh

PKGNAME=netbird
SUPPORTEDARCHES="x86_64 aarch64 i386 armv6l"
VERSION="$2"
DESCRIPTION="Secure WireGuard® overlay network with SSO/MFA."
URL="https://github.com/netbirdio/netbird"

. $(dirname $0)/common.sh

arch="$(epm print info -a)"
case "$arch" in
x86_64)
arch="amd64"
;;
aarch64)
arch="arm64"
;;
i386 | i686)
arch="386"
;;
armv6l | armv7l)
arch="armv6"
;;
*)
fatal "Unsupported architecture: $arch"
;;
esac

if [ "$VERSION" = "*" ]; then
VERSION="$(get_github_tag https://github.com/netbirdio/netbird/)"
fi

PKGURL="https://github.com/netbirdio/netbird/releases/download/v${VERSION}/netbird_${VERSION}_linux_${arch}.deb"

install_pkgurl

0 comments on commit 8128924

Please sign in to comment.