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
Nurlan
eepm
Commits
accf4387
Commit
accf4387
authored
Oct 15, 2022
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
epm play opera: improve download latest available Linux version
parent
57d31869
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
7 deletions
+8
-7
opera.sh
play.d/opera.sh
+8
-7
No files found.
play.d/opera.sh
View file @
accf4387
...
...
@@ -21,23 +21,24 @@ arch="amd64"
epm play chromium-codecs-ffmpeg-extra
||
fatal
# Stable branch here for deb too
if
[
"
$BRANCH
"
=
"stable"
]
;
then
# https://get.geo.opera.com/pub/${pkgname}/desktop/${pkgver}/linux/${pkgname}-stable_${pkgver}_amd64.deb
# fast hack for download from CDN
URL
=
"https://download5.operacdn.com/pub/opera/desktop"
if
!
check_url_is_accessible
$URL
;
then
URL
=
"https://download3.operacdn.com/pub/opera/desktop"
check_url_is_accessible
$
URL
||
fatal
"Can't access to Opera CDN site
$URL
"
URL
=
"https://ftp.opera.com/pub/opera/desktop/"
PKGBASEURL
=
"
$(
epm tool eget
--list
--latest
$URL
/
*)
"
linux
if
!
check_url_is_accessible
$
PKGBASE
URL
;
then
PKGBASEURL
=
"
$(
epm tool eget
--list
--second-latest
$URL
/
*)
"
linux
check_url_is_accessible
$
PKGBASEURL
||
fatal
"Can't find Opera package for Linux at
$URL
"
fi
PKGBASEURL
=
"
$(
epm tool eget
--list
--latest
$URL
/
*)
"
linux
PKGURL
=
"
$(
epm tool eget
--list
--latest
$PKGBASEURL
"
$(
epm print constructname
$PKGNAME
"*"
$arch
deb
)
"
)
"
||
fatal
#"
epm
install
"
$PKGURL
"
||
fatal
exit
else
# they put all branch here (rpm only): https://rpm.opera.com/rpm/
[
"
$(
$DISTRVENDOR
-s
)
"
=
"alt"
]
&&
repack
=
'--repack'
||
repack
=
''
epm
install
$repack
https://rpm.opera.com/rpm/opera_
$BRANCH
-
*
-linux-release-x64-signed
.rpm
...
...
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