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
ef0403c2
Commit
ef0403c2
authored
Apr 26, 2023
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
epm play brave: rewrite
parent
ac9b8419
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
10 deletions
+10
-10
brave.sh
play.d/brave.sh
+10
-10
No files found.
play.d/brave.sh
View file @
ef0403c2
...
...
@@ -8,28 +8,28 @@ DESCRIPTION="Brave browser from the official site"
.
$(
dirname
$0
)
/common.sh
arch
=
x86_64
pkgtype
=
rpm
repack
=
''
# we have workaround for their postinstall script, so always repack rpm package
[
"
$(
epm print info
-p
)
"
=
"deb"
]
||
repack
=
'--repack'
PKG
=
$(
epm tool eget
--list
--latest
https://github.com/brave/brave-browser/releases
"
$PKGNAME
-
$VERSION
.
$arch
.
$pkgtype
"
)
# brave-browser-beta-1.51.105-1.x86_64.rpm
# brave-browser-beta_1.51.105_amd64.deb
if
[
-z
"
$PKG
"
]
;
then
# force use beta
PKGURL
=
$(
epm tool eget
--list
--latest
https://github.com/brave/brave-browser/releases
"
$(
epm print constructname
$PKGNAME
"
$VERSION
"
)
"
)
if
[
-z
"
$PKGURL
"
]
;
then
# force use beta if can't get stable version
if
[
"
$PKGNAME
"
=
"
$BASEPKGNAME
"
]
;
then
TOREMOVEPKG
=
$PKGNAME
# if there is no stable release, switch to beta
PKGNAME
=
$BASEPKGNAME
-beta
PKG
=
$(
epm tool eget
--list
--latest
https://github.com/brave/brave-browser/releases
"
$PKGNAME
-
$VERSION
.
$arch
.
$pkgtype
"
)
[
-n
"
$PKG
"
]
||
fatal
"Can't get package URL"
PKG
URL
=
$(
epm tool eget
--list
--latest
https://github.com/brave/brave-browser/releases
"
$(
epm print constructname
$PKGNAME
"
$VERSION
"
)
"
)
[
-n
"
$PKG
URL
"
]
||
fatal
"Can't get package URL"
echo
"Force switching from
$TOREMOVEPKG
to
$PKGNAME
... "
epm installed
$TOREMOVEPKG
&&
epm remove
$TOREMOVEPKG
else
fatal
"Can't get package URL"
fatal
"Can't get package URL
for
$PKGNAME
-
$VERSION
"
fi
fi
epm
$repack
install
"
$PKG
"
epm
$repack
install
"
$PKG
URL
"
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