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
cd8db06c
Commit
cd8db06c
authored
Apr 25, 2023
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
epm play rustdesk: rewrite file mask constructing
parent
23cd3399
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
12 deletions
+14
-12
rustdesk.sh
play.d/rustdesk.sh
+14
-12
No files found.
play.d/rustdesk.sh
View file @
cd8db06c
#!/bin/sh
PKGNAME
=
rustdesk
BASE
PKGNAME
=
rustdesk
SUPPORTEDARCHES
=
"x86_64 armhf"
VERSION
=
"
$2
"
if
[
"
$VERSION
"
=
"nightly"
]
;
then
SUPPORTEDARCHES
=
"x86_64 aarch64"
fi
DESCRIPTION
=
"RustDesk — Display and control your PC and Android devices"
PRODUCTALT
=
"stable nightly"
...
...
@@ -11,22 +14,21 @@ PRODUCTALT="stable nightly"
arch
=
$(
epm print info
-a
)
pkgtype
=
deb
BRANCH
=
stable
if
[
"
$VERSION
"
=
"nightly"
]
;
then
BRANCH
=
nightly
SUPPORTEDARCHES
=
"x86_64 aarch64"
MASK
=
"
$PKGNAME
-*
$arch
*.
$pkgtype
"
# https://github.com/rustdesk/rustdesk/releases/download/nightly/rustdesk-1.2.0-aarch64-unknown-linux-gnu-ubuntu-18.04.deb
URL
=
$(
epm tool eget
--list
--latest
https://github.com/rustdesk/rustdesk/releases
"
$MASK
"
)
||
fatal
"Can't get package URL"
if
[
"
$PKGNAME
"
=
"
$BASEPKGNAME
-nightly"
]
;
then
PKGNAME
=
rustdesk
# https://github.com/rustdesk/rustdesk/releases/download/nightly/rustdesk-1.2.0-aarch64.deb
MASK
=
"nightly/
$PKGNAME
-
$VERSION
-
$arch
.
$pkgtype
"
else
[
"
$arch
"
=
"armhf"
]
&&
arch
=
"raspberry-armhf"
||
arch
=
"[0-9].[0-9].[0-9]"
MASK
=
"
$PKGNAME
-
$arch
.
$pkgtype
"
PKGNAME
=
rustdesk
#rustdesk-1.1.9-raspberry-armhf.deb
#rustdesk-1.1.9.deb
[
"
$VERSION
"
=
"*"
]
&&
VERSION
=
"[0-9].[0-9].[0-9]"
[
"
$arch
"
=
"armhf"
]
&&
VERSION
=
"
$VERSION
-raspberry-armhf"
MASK
=
"[0-9]/
$PKGNAME
-
$VERSION
.
$pkgtype
"
fi
URL
=
$(
epm tool eget
--list
--latest
https://github.com/rustdesk/rustdesk/releases
"
$MASK
"
)
||
fatal
"Can't get package URL"
epm
install
$URL
||
exit
PKG
URL
=
$(
epm tool eget
--list
--latest
https://github.com/rustdesk/rustdesk/releases
"
$MASK
"
)
||
fatal
"Can't get package URL"
epm
install
$
PKG
URL
||
exit
cat
<<
EOF
...
...
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