mirror of
https://github.com/tanrax/linux-install-firefox-developer-edition.git
synced 2024-11-09 23:15:41 +01:00
Update and rename firefox-developer-install to linux-install-firefox-developer-edition
This commit is contained in:
parent
2adfa2eea7
commit
b9f4eab112
@ -1,34 +0,0 @@
|
||||
#!/bin/bash
|
||||
|
||||
# START
|
||||
set -e
|
||||
|
||||
## UNINSTALL
|
||||
# Remove binaries
|
||||
rm -rf /lib/firefox-developer/firefox /usr/bin/firefox-developer
|
||||
# Remove launch
|
||||
rm -f ~/.local/share/applications/firefox-developer.desktop
|
||||
# Remove icon
|
||||
rm -f ~/.local/share/icons/hicolor/128x128/apps/firefox-developer.png
|
||||
|
||||
# DOWNLOAD
|
||||
curl -L -o firefox-developer.tar.bz2 https://download.mozilla.org/\?product\=firefox-devedition-latest-ssl\&os\=linux64\&lang\=en-US
|
||||
|
||||
# EXTRACT
|
||||
tar -xf firefox-developer.tar.bz2
|
||||
rm -rf firefox-developer.tar.bz2
|
||||
mv firefox firefox-developer
|
||||
|
||||
# INSTALL
|
||||
sudo mv firefox-developer /lib
|
||||
sudo ln -s /lib/firefox-developer/firefox /usr/bin/firefox-developer
|
||||
|
||||
# DESKTOP INTEGRATION
|
||||
# Add icon
|
||||
ln -s /lib/firefox-developer/browser/chrome/icons/default/default128.png ~/.local/share/icons/hicolor/128x128/apps/firefox-developer.png
|
||||
update-desktop-database ~/.local/share/icons
|
||||
# Add launch
|
||||
echo -e "[Desktop Entry]\nEncoding=UTF-8\nName=Firefox Developer\nComment=Firefox Developer Edition\nExec=firefox-developer\nIcon=firefox-developer\nStartupWMClass=Firefox Developer\nType=Application\nCategories=Internet;\n" >> ~/.local/share/applications/firefox-developer.desktop
|
||||
|
||||
# NOTIFY
|
||||
echo "Installed!"
|
27
linux-install-firefox-developer-edition
Normal file
27
linux-install-firefox-developer-edition
Normal file
@ -0,0 +1,27 @@
|
||||
#!/bin/bash
|
||||
|
||||
# START
|
||||
set -e
|
||||
|
||||
## UNINSTALL
|
||||
# Remove binaries
|
||||
rm -rf /opt/firefox-developer/ /usr/bin/firefox-developer
|
||||
|
||||
# DOWNLOAD
|
||||
curl -L -o firefox-developer.tar.bz2 https://download.mozilla.org/\?product\=firefox-devedition-latest-ssl\&os\=linux64\&lang\=en-US
|
||||
|
||||
# EXTRACT
|
||||
tar -xf firefox-developer.tar.bz2
|
||||
rm -rf firefox-developer.tar.bz2
|
||||
mv firefox firefox-developer
|
||||
|
||||
# INSTALL
|
||||
sudo mv firefox-developer /opt
|
||||
sudo ln -s /opt/firefox-developer/firefox /usr/bin/firefox-developer
|
||||
|
||||
# DESKTOP INTEGRATION
|
||||
# Gnome Shell
|
||||
echo -e "[Desktop Entry]\nEncoding=UTF-8\nName=Firefox Developer Edition\nComment=Firefox Developer Edition\nExec=/opt/firefox-developer/firefox %u\nTerminal=false\nIcon=/opt/firefox-developer/browser/chrome/icons/default/default128.png\nStartupWMClass=Firefox Developer\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" > /usr/share/applications/firefox-developer.desktop
|
||||
|
||||
# NOTIFY
|
||||
echo "Installed!"
|
Loading…
Reference in New Issue
Block a user