Update Bash Scripts/Install_Programs.sh
This commit is contained in:
@@ -218,6 +218,36 @@ install_stremio () {
|
|||||||
echo
|
echo
|
||||||
}
|
}
|
||||||
|
|
||||||
|
install_balena_etcher () {
|
||||||
|
PACKAGE="balenaEtcher"
|
||||||
|
REPO="balena-io/etcher"
|
||||||
|
printf "Install %s? [y/N]: " "$PACKAGE"
|
||||||
|
read answer
|
||||||
|
case "$answer" in
|
||||||
|
y|Y)
|
||||||
|
echo "Installing $PACKAGE..."
|
||||||
|
DEB_URL=$(curl -s https://api.github.com/repos/$REPO/releases/latest \
|
||||||
|
| grep "browser_download_url.*amd64.deb" \
|
||||||
|
| cut -d '"' -f4)
|
||||||
|
|
||||||
|
if [ -z "$DEB_URL" ]; then
|
||||||
|
echo "❌ Failed to determine latest release"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
DEB_FILE=$(basename "$DEB_URL")
|
||||||
|
wget -q --show-progress "$DEB_URL"
|
||||||
|
sudo apt install -y "./$DEB_FILE"
|
||||||
|
|
||||||
|
# Cleanup
|
||||||
|
rm -f "$DEB_FILE"
|
||||||
|
;;
|
||||||
|
*)
|
||||||
|
echo "Skipping $PACKAGE"
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
echo
|
||||||
|
}
|
||||||
|
|
||||||
echo "Updating package list..."
|
echo "Updating package list..."
|
||||||
sudo apt update
|
sudo apt update
|
||||||
echo
|
echo
|
||||||
@@ -246,6 +276,7 @@ install_sublime
|
|||||||
install_joplin
|
install_joplin
|
||||||
install_flatseal
|
install_flatseal
|
||||||
install_stremio
|
install_stremio
|
||||||
|
install_balena_etcher
|
||||||
#"Visual Studio Code" "Requires Microsoft APT repo"
|
#"Visual Studio Code" "Requires Microsoft APT repo"
|
||||||
|
|
||||||
echo "Finished."
|
echo "Finished."
|
||||||
Reference in New Issue
Block a user