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
9cd80fc9
Commit
9cd80fc9
authored
Jul 16, 2022
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
epm play.d: add PRODUCTALT and --product-alternatives
parent
f4f8546c
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
25 additions
and
1 deletion
+25
-1
brave.sh
play.d/brave.sh
+1
-0
common.sh
play.d/common.sh
+19
-0
vivaldi-codecs-ffmpeg-extra.sh
play.d/vivaldi-codecs-ffmpeg-extra.sh
+1
-0
vivaldi.sh
play.d/vivaldi.sh
+1
-0
yandex-browser-codecs-ffmpeg-extra.sh
play.d/yandex-browser-codecs-ffmpeg-extra.sh
+1
-0
yandex-browser.sh
play.d/yandex-browser.sh
+2
-1
No files found.
play.d/brave.sh
View file @
9cd80fc9
...
...
@@ -4,6 +4,7 @@ DESCRIPTION="Brave browser from the official site"
PKGNAME
=
brave-browser
SUPPORTEDARCHES
=
"x86_64"
PRODUCTALT
=
"'' beta nightly"
if
[
"
$2
"
=
"beta"
]
||
epm installed
$PKGNAME
-beta
;
then
PKGNAME
=
$PKGNAME
-beta
fi
...
...
play.d/common.sh
View file @
9cd80fc9
...
...
@@ -12,15 +12,34 @@ get_latest_version()
epm tool eget
-q
-O-
"
$URL
/
$1
"
}
print_product_alt
()
{
[
-n
"
$1
"
]
||
return
shift
echo
"
$*
"
}
case
"
$1
"
in
"--remove"
)
epm remove
$PKGNAME
exit
;;
"--help"
)
if
[
-n
"
$PRODUCTALT
"
]
;
then
echo
"Help about additional parameters."
echo
"Use epm play
$(
basename
$0
.sh
)
[
$(
echo
"
$PRODUCTALT
"
|
sed
-e
's@ @|@g'
)
]"
fi
[
-n
"
$TIPS
"
]
&&
echo
"
$TIPS
"
exit
;;
"--package"
)
echo
"
$PKGNAME
"
exit
;;
"--product-alternatives"
)
print_product_alt
$PRODUCTALT
exit
;;
"--installed"
)
epm installed
$PKGNAME
exit
...
...
play.d/vivaldi-codecs-ffmpeg-extra.sh
View file @
9cd80fc9
...
...
@@ -10,6 +10,7 @@ if [ "$2" = "snapshot" ] ; then
fi
BASEPKGNAME
=
vivaldi-
$BRANCH
PRODUCTALT
=
"stable snapshot"
PKGNAME
=
vivaldi-
$BRANCH
-codecs-ffmpeg-extra
SUPPORTEDARCHES
=
"x86_64"
...
...
play.d/vivaldi.sh
View file @
9cd80fc9
...
...
@@ -2,6 +2,7 @@
DESCRIPTION
=
"Vivaldi browser from the official site"
PRODUCTALT
=
"stable snapshot"
BRANCH
=
stable
if
[
"
$2
"
=
"snapshot"
]
||
epm installed vivaldi-snapshot
;
then
BRANCH
=
snapshot
...
...
play.d/yandex-browser-codecs-ffmpeg-extra.sh
View file @
9cd80fc9
...
...
@@ -9,6 +9,7 @@ if [ "$2" = "beta" ] ; then
PRODUCTDIR
=
/opt/yandex/browser-
$BRANCH
fi
PRODUCTALT
=
"stable beta"
BASEPKGNAME
=
yandex-browser-
$BRANCH
PKGNAME
=
yandex-browser-
$BRANCH
-codecs-ffmpeg-extra
SUPPORTEDARCHES
=
"x86_64"
...
...
play.d/yandex-browser.sh
View file @
9cd80fc9
...
...
@@ -2,8 +2,9 @@
PRODUCTDIR
=
/opt/yandex/browser
DESCRIPTION
=
"Yandex browser from the official site"
TIPS
=
"Run
epm play yandex-browser beta
to install beta version of the browser."
TIPS
=
"Run
'epm play yandex-browser beta'
to install beta version of the browser."
PRODUCTALT
=
"stable beta"
BRANCH
=
stable
if
[
"
$2
"
=
"beta"
]
||
epm installed yandex-browser-beta
;
then
BRANCH
=
beta
...
...
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