wireguird/deps.sh
2024-01-20 01:19:54 +03:00

14 lines
643 B
Bash
Executable File

if [[ -f "/etc/os-release" ]]; then
source "/etc/os-release"
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
sudo apt install wireguard-tools libgtk-3-dev libayatana-appindicator3-dev golang-go resolvconf
elif [[ "${ID}" == "void" ]]; then
sudo xbps-install -S gtk+3-devel wireguard-dkms wireguard-tools libayatana-appindicator-devel go
fi
fi