Add support for Linux Mint and Raspberry Pi OS (Raspbian), also, group Debian-based distros in .sh scripts

This commit is contained in:
Fukislim 2025-12-05 02:11:06 +01:00
parent 92a200799a
commit eac989a80d
3 changed files with 6 additions and 5 deletions

View File

@ -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

View File

@ -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

View File

@ -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