From 3f05258666743af32b2105f8fa9c00636c4a931f Mon Sep 17 00:00:00 2001 From: Alejandro Sajaroff Date: Sat, 19 Feb 2022 11:50:22 -0300 Subject: [PATCH] Adding install script for Firefox nightly --- scripts/install-firefox-nightly.sh | 26 ++++++++++++++++++++++++++ scripts/upgrade-bitwarden.sh | 5 ++++- 2 files changed, 30 insertions(+), 1 deletion(-) create mode 100755 scripts/install-firefox-nightly.sh diff --git a/scripts/install-firefox-nightly.sh b/scripts/install-firefox-nightly.sh new file mode 100755 index 0000000..77dec94 --- /dev/null +++ b/scripts/install-firefox-nightly.sh @@ -0,0 +1,26 @@ +# Firefox nightly installation script +# +# Variables +INSTALL_DIR=/opt/firefox-nightly + +[ -d ${INSTALL_DIR} ] || mkdir ${INSTALL_DIR} + +if [ "$EUID" -ne 0 ] + then echo "Please run as root" + exit +fi + +curl -L "https://download.mozilla.org/?product=firefox-nightly-latest-l10n-ssl&os=linux64&lang=en-US" -o ${INSTALL_DIR}/firefox-installer.tar.bz2 + +tar -xvf ${INSTALL_DIR}/firefox-installer.tar.bz2 -C ${INSTALL_DIR}/ + +cat << EOF > /usr/share/applications/firefox-nightly.desktop +[Desktop Entry] +Name=Firefox nightly +GenericName=Nightly web browser +Comment=Browse the web +Exec=${INSTALL_DIR}/firefox/firefox-bin %u +Icon=${INSTALL_DIR}/firefox/browser/chrome/icons/default/default128.png +Type=Application +Terminal=false +EOF diff --git a/scripts/upgrade-bitwarden.sh b/scripts/upgrade-bitwarden.sh index 8cce52a..42855b7 100755 --- a/scripts/upgrade-bitwarden.sh +++ b/scripts/upgrade-bitwarden.sh @@ -16,6 +16,9 @@ if [ "$EUID" -ne 0 ] fi curl -L "https://vault.bitwarden.com/download/?app=desktop&platform=linux" -o ${INSTALL_DIR}/bitwarden-latest +curl -L "https://raw.githubusercontent.com/bitwarden/desktop/v1.31.3/resources/icons/128x128.png" -o ${INSTALL_DIR}/icon128.png +curl -L "https://raw.githubusercontent.com/bitwarden/desktop/v1.31.3/resources/icons/256x256.png" -o ${INSTALL_DIR}/icon256.png +curl -L "https://raw.githubusercontent.com/bitwarden/desktop/v1.31.3/resources/icons/512x512.png" -o ${INSTALL_DIR}/icon512.png chmod +x ${INSTALL_DIR}/bitwarden-latest @@ -25,7 +28,7 @@ Name=Bitwarden GenericName=Password manager Comment=Password manager Exec=/opt/bitwarden/bitwarden-latest -Icon=/opt/bitwarden/icon.png +Icon=/opt/bitwarden/icon128.png Type=Application Terminal=false EOF