2020-09-26 19:05:18 +02:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
# START
|
|
|
|
set -e
|
|
|
|
|
|
|
|
## UNINSTALL
|
2020-09-26 22:56:14 +02:00
|
|
|
# Remove binaries
|
2020-09-26 19:05:18 +02:00
|
|
|
rm -rf /lib/firefox-developer/firefox /usr/bin/firefox-developer
|
2020-09-26 22:56:14 +02:00
|
|
|
# Remove launch
|
2020-09-26 19:05:18 +02:00
|
|
|
rm -f ~/.local/share/applications/firefox-developer.desktop
|
2020-09-26 22:56:14 +02:00
|
|
|
# Remove icon
|
|
|
|
rm -f ~/.local/share/icons/hicolor/128x128/apps/firefox-developer.png
|
2020-09-26 19:05:18 +02:00
|
|
|
|
|
|
|
# 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
|
|
|
|
|
2020-09-26 22:56:14 +02:00
|
|
|
# DESKTOP INTEGRATION
|
|
|
|
# Add icon
|
2020-09-26 19:05:18 +02:00
|
|
|
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
|
2020-09-26 22:56:14 +02:00
|
|
|
# Add launch
|
2020-09-26 19:05:18 +02:00
|
|
|
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!"
|