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
Vladislav
eepm
Commits
bd3a954d
Commit
bd3a954d
authored
Jul 21, 2023
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
epm play signal: switch to new way to get the latest version
parent
01cccee5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
3 deletions
+19
-3
signal.sh
play.d/signal.sh
+19
-3
No files found.
play.d/signal.sh
View file @
bd3a954d
...
...
@@ -8,6 +8,22 @@ DOWNURL="https://updates.signal.org/desktop/apt/pool/main/s/signal-desktop"
.
$(
dirname
$0
)
/common.sh
URL
=
$(
epm tool eget
--list
--latest
https://mirror.cs.uchicago.edu/signal/pool/main/s/signal-desktop/
"
${
PKGNAME
}
_
${
VERSION
}
_amd64.deb"
)
URL
=
$(
echo
"
$URL
"
|
sed
-e
"s|
\(
.*/
\)
|
$DOWNURL
/|"
)
epm
install
"
$URL
"
# Direct link to download .deb package
# https://github.com/signalapp/Signal-Desktop/issues/3506
# old way
#PKGURL=$(epm tool eget --list --latest https://mirror.cs.uchicago.edu/signal/pool/main/s/signal-desktop/ "${PKGNAME}_${VERSION}_amd64.deb")
#file="$(basename $PKGURL)"
#[ "$VERSION" = "*" ] && VERSION="$(epm tool eget --list --latest https://github.com/signalapp/Signal-Desktop/releases/ v$VERSION.tar.gz | sed -e 's|^v\(.*\)\.tar\.gz|\1|')"
[
"
$VERSION
"
=
"*"
]
&&
VERSION
=
"
$(
epm tool eget
-O-
https://api.github.com/repos/signalapp/Signal-Desktop/releases |
grep
'"name": "v[0-9]*\.[0-9]*\.[0-9]*"'
|
head
-n1
|
sed
-e
's|.* "v\(.*\)".*|\1|'
)
"
#'
#file="$(epm tool eget -O- https://updates.signal.org/desktop/apt/dists/xenial/main/binary-amd64/Packages.gz | zcat | grep Filename | sed 's_Filename: _https://updates.signal.org/desktop/apt/_')"
[
-n
"
$VERSION
"
]
||
fatal
"Can't retrieve the latest version for
$PKGNAME
."
# signal-desktop_5.63.1_amd64.deb
file
=
signal-desktop_
${
VERSION
}
_amd64.deb
#PKGURL="https://updates.signal.org/desktop/apt/pool/main/s/signal-desktop/$file"
PKGURL
=
"https://updates.signal.org/desktop/apt/pool/s/signal-desktop/
$file
"
epm
install
"
$PKGURL
"
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