Commit a32c8ab1 authored by Vitaly Lipatov's avatar Vitaly Lipatov

epm play brave: install beta by default (nightly as alternative)

parent 424dc788
#!/bin/sh
PKGNAME=brave-browser-nightly
DESCRIPTION="Brave browser from the official site"
BRANCH=beta
if [ "$2" = "nightly" ] || epm installed brave-browser-nightly ; then
BRANCH=nightly
fi
PKGNAME=brave-browser-$BRANCH
. $(dirname $0)/common.sh
......@@ -14,6 +19,6 @@ repack=''
# we have workaround for their postinstall script, so always repack rpm package
[ "$($DISTRVENDOR -p)" = "deb" ] || repack='--repack'
PKG=$($EGET --list --latest https://github.com/brave/brave-browser/releases "brave-browser-*.$arch.$pkgtype") || fatal "Can't get package URL"
PKG=$($EGET --list --latest https://github.com/brave/brave-browser/releases "$PKGNAME*.$arch.$pkgtype") || fatal "Can't get package URL"
epm $repack install "$PKG"
#!/bin/sh -x
# It will run with two args: buildroot spec
BUILDROOT="$1"
SPEC="$2"
PRODUCT=brave-browser
PRODUCTCUR=brave-browser-beta
PRODUCTDIR=/opt/brave.com/brave-beta
. $(dirname $0)/common-chromium-browser.sh
subst '1iConflicts:brave-browser-nightly' $SPEC
set_alt_alternatives 80
copy_icons_to_share
cleanup
add_bin_commands
use_system_xdg
install_deps
......@@ -7,9 +7,10 @@ PRODUCT=brave-browser
PRODUCTCUR=brave-browser-nightly
PRODUCTDIR=/opt/brave.com/brave-nightly
. $(dirname $0)/common-chromium-browser.sh
subst '1iConflicts:brave-browser-nightly' $SPEC
set_alt_alternatives 80
copy_icons_to_share
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment