Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
eepm
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
etersoft
eepm
Commits
b594841c
Commit
b594841c
authored
May 13, 2022
by
Ilya Demyanov
Committed by
Vitaly Lipatov
May 15, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
epm play brave: install stable branch by default (beta or nightly as alternative)
parent
0b16643b
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
34 additions
and
7 deletions
+34
-7
brave.sh
play.d/brave.sh
+7
-5
brave-browser-beta.sh
repack.d/brave-browser-beta.sh
+1
-1
brave-browser-nightly.sh
repack.d/brave-browser-nightly.sh
+1
-1
brave-browser.sh
repack.d/brave-browser.sh
+25
-0
No files found.
play.d/brave.sh
View file @
b594841c
...
@@ -2,11 +2,13 @@
...
@@ -2,11 +2,13 @@
DESCRIPTION
=
"Brave browser from the official site"
DESCRIPTION
=
"Brave browser from the official site"
BRANCH
=
beta
PKGNAME
=
brave-browser
if
[
"
$2
"
=
"nightly"
]
||
epm installed brave-browser-nightly
;
then
if
[
"
$2
"
=
"beta"
]
||
epm installed
$PKGNAME
-beta
;
then
BRANCH
=
nightly
PKGNAME
=
$PKGNAME
-beta
fi
if
[
"
$2
"
=
"nightly"
]
||
epm installed
$PKGNAME
-nightly
;
then
PKGNAME
=
$PKGNAME
-nightly
fi
fi
PKGNAME
=
brave-browser-
$BRANCH
.
$(
dirname
$0
)
/common.sh
.
$(
dirname
$0
)
/common.sh
...
@@ -19,6 +21,6 @@ repack=''
...
@@ -19,6 +21,6 @@ repack=''
# we have workaround for their postinstall script, so always repack rpm package
# we have workaround for their postinstall script, so always repack rpm package
[
"
$(
$DISTRVENDOR
-p
)
"
=
"deb"
]
||
repack
=
'--repack'
[
"
$(
$DISTRVENDOR
-p
)
"
=
"deb"
]
||
repack
=
'--repack'
PKG
=
$(
epm tool eget
--list
--latest
https://github.com/brave/brave-browser/releases
"
$PKGNAME
*.
$arch
.
$pkgtype
"
)
||
fatal
"Can't get package URL"
PKG
=
$(
epm tool eget
--list
--latest
https://github.com/brave/brave-browser/releases
"
$PKGNAME
-[[:digit:]]
*.
$arch
.
$pkgtype
"
)
||
fatal
"Can't get package URL"
epm
$repack
install
"
$PKG
"
epm
$repack
install
"
$PKG
"
repack.d/brave-browser-beta.sh
View file @
b594841c
...
@@ -9,7 +9,7 @@ PRODUCTDIR=/opt/brave.com/brave-beta
...
@@ -9,7 +9,7 @@ PRODUCTDIR=/opt/brave.com/brave-beta
.
$(
dirname
$0
)
/common-chromium-browser.sh
.
$(
dirname
$0
)
/common-chromium-browser.sh
subst
'1iConflicts:brave-browser-nightly'
$SPEC
subst
'1iConflicts:brave-browser
brave-browser
-nightly'
$SPEC
set_alt_alternatives 80
set_alt_alternatives 80
...
...
repack.d/brave-browser-nightly.sh
View file @
b594841c
...
@@ -9,7 +9,7 @@ PRODUCTDIR=/opt/brave.com/brave-nightly
...
@@ -9,7 +9,7 @@ PRODUCTDIR=/opt/brave.com/brave-nightly
.
$(
dirname
$0
)
/common-chromium-browser.sh
.
$(
dirname
$0
)
/common-chromium-browser.sh
subst
'1iConflicts:brave-browser
-nightly
'
$SPEC
subst
'1iConflicts:brave-browser
brave-browser-beta
'
$SPEC
set_alt_alternatives 80
set_alt_alternatives 80
...
...
repack.d/brave-browser.sh
0 → 100755
View file @
b594841c
#!/bin/sh -x
# It will run with two args: buildroot spec
BUILDROOT
=
"
$1
"
SPEC
=
"
$2
"
PRODUCT
=
brave-browser
PRODUCTCUR
=
brave-browser
PRODUCTDIR
=
/opt/brave.com/brave
.
$(
dirname
$0
)
/common-chromium-browser.sh
subst
'1iConflicts:brave-browser-beta brave-browser-nightly'
$SPEC
set_alt_alternatives 80
copy_icons_to_share
cleanup
add_bin_commands
use_system_xdg
install_deps
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment