PortValhalla/scripts/Debian/Software/Brave/install-nightly.sh

20 lines
779 B
Bash
Raw Normal View History

#!/bin/bash
# Elevate script
if [ ! "$UID" -eq 0 ]
then
sudo bash "$BASH_SOURCE";
2022-11-13 00:11:32 +00:00
else
# Prepare
apt install -y wget unzip jq apt-transport-https curl;
curl -fsSLo /usr/share/keyrings/brave-browser-nightly-archive-keyring.gpg https://brave-browser-apt-nightly.s3.brave.com/brave-browser-nightly-archive-keyring.gpg;
2022-11-13 00:15:45 +00:00
echo "deb [signed-by=/usr/share/keyrings/brave-browser-nightly-archive-keyring.gpg arch=amd64] https://brave-browser-apt-nightly.s3.brave.com/ stable main" \
| sudo tee /etc/apt/sources.list.d/brave-browser-nightly.list;
2022-11-13 00:11:32 +00:00
# Install Brave Nightly
apt update;
apt install -y brave-browser-nightly;
2022-11-13 00:11:32 +00:00
# Add pre-installed extensions
sudo ln -s /opt/brave.com/brave/extensions /opt/brave.com/brave-nightly/extensions;
2022-11-13 00:11:32 +00:00
fi