update build script and add firefox install hook

This commit is contained in:
manuel 2024-03-10 11:46:38 -01:00
parent 5ba786316b
commit f79dd24487
2 changed files with 38 additions and 3 deletions

View File

@ -85,8 +85,8 @@ dconf-editor
evince
f2fs-tools
ffmpegthumbnailer
firefox-esr
firefox-esr-l10n-all
#firefox-esr
#firefox-esr-l10n-all
fonts-cantarell
fonts-liberation
gdebi
@ -97,7 +97,6 @@ gnome-calculator
gnome-chess
gnome-disk-utility
gnome-mahjongg
gnome-packagekit
gnome-software
gnome-software-plugin-flatpak
gnome-software-plugin-snap

View File

@ -0,0 +1,36 @@
#!/bin/bash
################################################################################
# install-firefox-official.sh -- Revision: 1.0 by Manuel Rosa (manuelsilvarosa@gmail.com)
# (GNU/General Public License version 3.0)
# This script installs Firefox on Debian using the official repository.
################################################################################
# Script functions
function add_mozilla_repository() {
echo "deb http://mirrors.mozilla.org/firefox/ppa/stable focal main" | sudo tee /etc/apt/sources.list.d/firefox-ppa.list
}
function import_mozilla_gpg_key() {
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 9577B98D
}
function update_apt_cache() {
sudo apt-get update
}
function install_firefox() {
sudo apt-get install firefox
}
function main() {
add_mozilla_repository
import_mozilla_gpg_key
update_apt_cache
install_firefox
}
# Script execution
main
echo "Firefox has been installed successfully."