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
3b1eb3d5
Commit
3b1eb3d5
authored
Apr 14, 2024
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
epm play brave: allow direct downloading
parent
7f3aa322
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
7 deletions
+10
-7
brave.sh
play.d/brave.sh
+10
-7
No files found.
play.d/brave.sh
View file @
3b1eb3d5
#!/bin/sh
BASEPKGNAME
=
brave-browser
SUPPORTEDARCHES
=
"x86_64"
SUPPORTEDARCHES
=
"x86_64
aarch64
"
PRODUCTALT
=
"'' beta nightly"
VERSION
=
"
$2
"
DESCRIPTION
=
"Brave browser from the official site"
...
...
@@ -11,13 +11,16 @@ DESCRIPTION="Brave browser from the official site"
# brave-browser-beta-1.51.105-1.x86_64.rpm
# brave-browser-beta_1.51.105_amd64.deb
# rpm packages have a release in their names
[
"
$(
epm print info
-p
)
"
=
"rpm"
]
&&
[
"
$VERSION
"
!=
"*"
]
&&
VERSION
=
"
$VERSION
-1"
# hack to fix short name issue
[
"
$VERSION
"
=
"*"
]
&&
VERSION
=
"[[:digit:]]*"
PKGURL
=
$(
eget
--list
--latest
https://github.com/brave/brave-browser/releases
$(
epm print constructname
$PKGNAME
"
$VERSION
"
))
if
[
"
$VERSION
"
=
"*"
]
;
then
VERSION
=
"[[:digit:]]*"
PKGURL
=
$(
eget
--list
--latest
https://github.com/brave/brave-browser/releases
$(
epm print constructname
$PKGNAME
"
$VERSION
"
))
else
OVERSION
=
"
$VERSION
"
# rpm packages have a release in their names
[
"
$(
epm print info
-p
)
"
=
"rpm"
]
&&
VERSION
=
"
$VERSION
-1"
PKGURL
=
"https://github.com/brave/brave-browser/releases/download/v
$OVERSION
/
$(
epm print constructname
$PKGNAME
"
$VERSION
"
)
"
fi
# some hack
if
[
-z
"
$PKGURL
"
]
;
then
...
...
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