update build script and add firefox install hook
This commit is contained in:
parent
5ba786316b
commit
f79dd24487
|
@ -85,8 +85,8 @@ dconf-editor
|
||||||
evince
|
evince
|
||||||
f2fs-tools
|
f2fs-tools
|
||||||
ffmpegthumbnailer
|
ffmpegthumbnailer
|
||||||
firefox-esr
|
#firefox-esr
|
||||||
firefox-esr-l10n-all
|
#firefox-esr-l10n-all
|
||||||
fonts-cantarell
|
fonts-cantarell
|
||||||
fonts-liberation
|
fonts-liberation
|
||||||
gdebi
|
gdebi
|
||||||
|
@ -97,7 +97,6 @@ gnome-calculator
|
||||||
gnome-chess
|
gnome-chess
|
||||||
gnome-disk-utility
|
gnome-disk-utility
|
||||||
gnome-mahjongg
|
gnome-mahjongg
|
||||||
gnome-packagekit
|
|
||||||
gnome-software
|
gnome-software
|
||||||
gnome-software-plugin-flatpak
|
gnome-software-plugin-flatpak
|
||||||
gnome-software-plugin-snap
|
gnome-software-plugin-snap
|
||||||
|
|
|
@ -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."
|
Loading…
Reference in New Issue