Files
andwati 36f0caa66e Add modular dev environment installer, dotfiles, and desnap script
Adds a TUI-driven, rollback-capable installer (install/install.sh +
install/modules/*.sh) covering JS/Python/systems toolchains, dev tooling,
browsers, chat apps, GNOME extras, and misc setup (wakatime key, ssh/gpg
perms, apt mirror benchmarking), all sourced from each vendor's official
install method. bootstrap.sh stows the zsh/git/tmux/vscode dotfiles and
runs the installer; desnap.sh purges snapd and replaces default snaps with
apt/Flatpak equivalents.
2026-07-15 17:02:27 +03:00

26 lines
761 B
Bash

install_protonvpn() {
if dpkg -s proton-vpn-gnome-desktop >/dev/null 2>&1; then
ok "protonvpn already installed"
return
fi
local list_url deb_name deb
list_url="https://repo.protonvpn.com/debian/dists/stable/main/binary-all/"
deb_name=$(curl -fsSL "$list_url" | grep -oE 'protonvpn-stable-release_[0-9.]+_all\.deb' | sort -V | tail -n1)
if [[ -z "$deb_name" ]]; then
err "could not find the protonvpn-stable-release package on repo.protonvpn.com"
return 1
fi
deb=$(mktemp --suffix=.deb)
curl -fsSL "${list_url}${deb_name}" -o "$deb"
apt_update_once
sudo apt-get install -y "$deb"
rm -f "$deb"
rollback_push "sudo apt-get remove -y protonvpn-stable-release"
apt_invalidate
apt_install proton-vpn-gnome-desktop
}