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
41fa32f6
Commit
41fa32f6
authored
3 years ago
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
prescription.d/telegram.sh: download stable version if latest has no binary (ALT bug 40368)
parent
b0aeab5f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
1 deletion
+6
-1
telegram.sh
prescription.d/telegram.sh
+6
-1
No files found.
prescription.d/telegram.sh
View file @
41fa32f6
...
...
@@ -19,7 +19,12 @@ fi
[
"
$(
$DISTRVENDOR
-a
)
"
!=
"x86_64"
]
&&
echo
"Only x86_64 is supported"
&&
exit
1
PKGURL
=
$(
$EGET
--list
--latest
https://github.com/telegramdesktop/tdesktop/releases
"tsetup.*.tar.xz"
)
||
fatal
"Can't get package URL"
PKGURL
=
$(
$EGET
--list
--latest
https://github.com/telegramdesktop/tdesktop/releases
"tsetup.*.tar.xz"
)
# hack: install latest know version if latest release have no binary for linux
# todo: check all releases?
STABLEVERSION
=
2.8.1
[
-n
"
$PKGURL
"
]
||
PKGURL
=
https://github.com/telegramdesktop/tdesktop/releases/download/v
$STABLEVERSION
/tsetup.
$STABLEVERSION
.tar.xz
[
-n
"
$PKGURL
"
]
||
fatal
"Can't get package URL"
PKGFILE
=
$(
echo
/tmp/
$(
basename
$PKGURL
)
|
sed
-e
"s|/tsetup|/
$PKGNAME
|"
)
$EGET
-O
$PKGFILE
$PKGURL
||
exit
...
...
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