mirror of
https://github.com/tanrax/linux-install-firefox.git
synced 2024-12-22 12:35:35 +01:00
26 lines
958 B
Bash
26 lines
958 B
Bash
#!/bin/bash
|
|
|
|
# START
|
|
set -e
|
|
|
|
## UNINSTALL
|
|
# Remove binaries
|
|
sudo rm -rf /opt/firefox/ /usr/bin/firefox
|
|
|
|
# DOWNLOAD
|
|
curl -L -o firefox.tar.bz2 https://download-installer.cdn.mozilla.net/pub/firefox/releases/88.0/linux-x86_64/es-ES/firefox-88.0.tar.bz2
|
|
|
|
# EXTRACT
|
|
tar -xf firefox.tar.bz2
|
|
rm -rf firefox.tar.bz2
|
|
|
|
# INSTALL
|
|
sudo mv firefox /opt
|
|
sudo ln -s /opt/firefox/firefox /usr/bin/firefox
|
|
|
|
# DESKTOP INTEGRATION
|
|
echo -e "[Desktop Entry]\nEncoding=UTF-8\nName=Firefox\nComment=Firefox\nExec=/opt/firefox/firefox %u\nTerminal=false\nIcon=/opt/firefox/browser/chrome/icons/default/default128.png\nStartupWMClass=Firefox\nType=Application\nCategories=Network;WebBrowser;\nMimeType=text/html;text/xml;application/xhtml+xml;application/xml;application/vnd.mozilla.xul+xml;application/rss+xml;application/rdf+xml;x-scheme-handler/http;x-scheme-handler/https;\nStartupNotify=true\n" | sudo tee -a /usr/share/applications/firefox.desktop
|
|
|
|
# NOTIFY
|
|
echo "Installed!"
|