This commit is contained in:
2026-07-10 15:11:51 +08:00
parent 8bfcf23bc2
commit da17239d7d
148 changed files with 2542 additions and 4873 deletions
+32 -34
View File
@@ -1,43 +1,41 @@
#!/usr/bin/env bash
##makedesc: Install bunch of software from snap
echo
echo "==============================================="
echo "Installing software from snap..."
echo "==============================================="
echo
set -eo pipefail
installed() {
command -v "$1" >/dev/null 2>&1
}
snapi() {
snap install $1 2>/dev/null
[[ $? -ne 0 ]] && snap install $1 --classic
}
if ! installed snapd; then
sudo apt update
sudo apt install -y --autoremove snapd #gnome-software-plugin-snap
if [ "$(uname -s)" = "Darwin" ]; then
echo "ERROR: snap is not supported on macOS. Use brew instead." >&2
exit 1
fi
# snapi snap-store
# snapi gtk-common-themes
# snapi gtk2-common-themes
installed() { command -v "$1" >/dev/null 2>&1; }
snapi peek
# snapi telegram-desktop #todo
# snapi code # deb https://github.com/microsoft/vscode/issues/221836
snapi skype
snapi dbeaver-ce
# snapi mysql-workbench-community
# snapi discord
# snapi phpstorm
# snapi audacity
# snapi flameshot # deb
# snapi zoom-client # deb
snapi() {
snap install "$1" 2>/dev/null || snap install "$1" --classic
}
# https://certbot.eff.org/
# snapi certbot
# sudo ln -sf /snap/bin/certbot /usr/bin/certbot
install() {
echo
echo "==============================================="
echo "Installing software from snap"
echo "==============================================="
echo
if ! installed snapd; then
sudo apt update
sudo apt install -y --autoremove snapd
fi
snapi peek
snapi skype
snapi dbeaver-ce
echo
echo "Finish!"
echo
}
case "$1" in
*) install ;;
esac