mirror of
https://github.com/UnnoTed/wireguird
synced 2026-03-16 05:28:09 -04:00
Add support for Linux Mint and Raspberry Pi OS (Raspbian), also, group Debian-based distros in .sh scripts
This commit is contained in:
parent
92a200799a
commit
eac989a80d
4
deps.sh
4
deps.sh
@ -3,9 +3,7 @@ if [[ -f "/etc/os-release" ]]; then
|
||||
if [[ "${ID}" == "fedora" ]]; then
|
||||
echo "not supported yet"
|
||||
#sudo dnf install wireguard-tools gtk3-devel golang resolvconf
|
||||
elif [[ "${ID}" == "ubuntu" ]]; then
|
||||
sudo apt install wireguard-tools libgtk-3-dev libayatana-appindicator3-dev golang-go resolvconf
|
||||
elif [[ "${ID}" == "debian" ]]; then
|
||||
elif [[ "${ID}" == "ubuntu" || "${ID}" == "debian" || "${ID}" == "linuxmint" || "${ID}" == "raspbian" ]]; then
|
||||
sudo apt install wireguard-tools libgtk-3-dev libayatana-appindicator3-dev golang-go resolvconf
|
||||
fi
|
||||
fi
|
||||
|
||||
@ -3,9 +3,12 @@ if [[ -f "/etc/os-release" ]]; then
|
||||
if [[ "${ID}" == "fedora" ]]; then
|
||||
echo "not supported yet"
|
||||
#sudo rpm
|
||||
elif [[ "${ID}" == "ubuntu" ]]; then
|
||||
elif [[ "${ID}" == "ubuntu" || "${ID}" == "debian" || "${ID}" == "linuxmint" ]]; then
|
||||
ARCH=${ARCH:-amd64}
|
||||
sudo dpkg -i ./build/wireguird_${ARCH}.deb
|
||||
elif [[ "${ID}" == "raspbian" ]]; then
|
||||
ARCH=${ARCH:-arm64}
|
||||
sudo dpkg -i ./build/wireguird_${ARCH}.deb
|
||||
fi
|
||||
fi
|
||||
|
||||
|
||||
@ -4,7 +4,7 @@ if [[ -f "/etc/os-release" ]]; then
|
||||
echo "not supported yet"
|
||||
#echo "rpm package"
|
||||
#./package_rpm.sh
|
||||
elif [[ "${ID}" == "ubuntu" ]]; then
|
||||
elif [[ "${ID}" == "ubuntu" || "${ID}" == "debian" || "${ID}" == "linuxmint" || "${ID}" == "raspbian" ]]; then
|
||||
echo "deb package"
|
||||
./package_deb.sh
|
||||
fi
|
||||
|
||||
Loading…
Reference in New Issue
Block a user