Skip to content

Commit

Permalink
Merge pull request #6 from asajaroff/feature/firefox-nightly
Browse files Browse the repository at this point in the history
Adding install script for Firefox nightly
  • Loading branch information
asajaroff authored Feb 19, 2022
2 parents 16b84c3 + 3f05258 commit e60680a
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 1 deletion.
26 changes: 26 additions & 0 deletions scripts/install-firefox-nightly.sh
Original file line number Diff line number Diff line change
@@ -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
5 changes: 4 additions & 1 deletion scripts/upgrade-bitwarden.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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

0 comments on commit e60680a

Please sign in to comment.