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
c39c7c81
Commit
c39c7c81
authored
2 years ago
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
epm play master-pdf-editor: get package name from site, add fallback for unknown distro
parent
8d46d573
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
10 deletions
+19
-10
master-pdf-editor.sh
play.d/master-pdf-editor.sh
+19
-10
No files found.
play.d/master-pdf-editor.sh
View file @
c39c7c81
...
...
@@ -6,24 +6,33 @@ DESCRIPTION="Master PDF Editor from the official site"
.
$(
dirname
$0
)
/common.sh
PKG
=
''
repack
=
''
# Strict supported list
case
$(
epm print info
-e
)
in
AstraLinuxCE/
*
|
Debian/
*
|
Ubuntu/
*
)
PKG
=
"master-pdf-editor-
5.8.70-qt5
.x86_64.deb"
AstraLinuxCE/
*
|
Debian/
9|Ubuntu/20
)
PKG
=
"master-pdf-editor-
*-qt5.9
.x86_64.deb"
;;
AstraLinuxSE/1.7
*
)
PKG
=
"master-pdf-editor-
5.8.70-qt5_astra
.x86_64.deb"
AstraLinuxSE/1.7
*
|
Debian/
*
|
Ubuntu/
*
)
PKG
=
"master-pdf-editor-
*-qt5
.x86_64.deb"
;;
RedOS/
*
|
AlterOS/
*
|
ALTLinux/
*
|
ALTServer/
*
|
MOC/
*
)
PKG
=
"master-pdf-editor-
5.8.70
-qt5.x86_64.rpm"
PKG
=
"master-pdf-editor-
*
-qt5.x86_64.rpm"
repack
=
'--repack'
;;
*
)
fatal
"Unsupported distro
$(
epm print info
-e
)
. Ask application vendor for a support."
;;
esac
URL
=
"https://code-industry.ru/public/
$PKG
"
if
[
-z
"
$PKG
"
]
;
then
case
$(
epm print info
-p
)
in
rpm
)
PKG
=
"master-pdf-editor-*-qt5.x86_64.rpm"
;;
*
)
PKG
=
"master-pdf-editor-*-qt5.x86_64.deb"
;;
esac
fi
PKGURL
=
$(
epm tool eget
--list
--latest
https://code-industry.ru/free-pdf-editor/
$PKG
)
epm
$repack
install
"
$URL
"
epm
$repack
install
"
$
PKG
URL
"
This diff is collapsed.
Click to expand it.
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