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
d932349c
Commit
d932349c
authored
1 year ago
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
simplify download via eget, parse result strictly
parent
dc705563
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
13 deletions
+14
-13
epm-play
bin/epm-play
+5
-7
epm-update
bin/epm-update
+2
-1
common.sh
play.d/common.sh
+7
-5
No files found.
bin/epm-play
View file @
d932349c
...
...
@@ -349,13 +349,11 @@ __epm_play_download_epm_file()
local
file
=
"
$2
"
# use short version (3.4.5)
local
epmver
=
"
$(
epm
--short
--version
)
"
local
URL
=
"https://eepm.ru/releases/
$epmver
/app-versions"
info
"Updating local IPFS DB in
$eget_ipfs_db
file from
$URL
/eget-ipfs-db.txt"
docmd eget
-q
-O
"
$target
"
"
$URL
/
$file
"
&&
return
URL
=
"https://eepm.ru/app-versions"
info
"Updating local IPFS DB in
$eget_ipfs_db
file from
$URL
/eget-ipfs-db.txt"
docmd eget
-q
-O
"
$target
"
"
$URL
/
$file
"
local
URL
for
URL
in
"https://eepm.ru/releases/
$epmver
/app-versions"
"https://eepm.ru/app-versions"
;
do
info
"Updating local IPFS DB in
$eget_ipfs_db
file from
$URL
/eget-ipfs-db.txt"
docmd eget
-q
-O
"
$target
"
"
$URL
/
$file
"
&&
return
done
}
...
...
This diff is collapsed.
Click to expand it.
bin/epm-update
View file @
d932349c
...
...
@@ -27,7 +27,8 @@ get_latest_version()
{
URL
=
"https://eepm.ru/app-versions"
#update_url_if_need_mirrored
epm tool eget
-q
-O-
"
$URL
/
$1
"
# TODO: check eget result, use only 200 OK
epm tool eget
-q
-O-
"
$URL
/
$1
"
|
head
-n1
|
cut
-d
" "
-f1
}
__check_for_epm_version
()
...
...
This diff is collapsed.
Click to expand it.
play.d/common.sh
View file @
d932349c
...
...
@@ -75,12 +75,14 @@ is_supported_arch()
get_latest_version
()
{
local
ver
local
epmver
=
"
$(
epm
--short
--version
)
"
local
URL
=
"https://eepm.ru/releases/
$epmver
/app-versions"
eget
-q
-O-
"
$URL
/
$1
"
&&
return
URL
=
"https://eepm.ru/app-versions"
eget
-q
-O-
"
$URL
/
$1
"
local
URL
for
URL
in
"https://eepm.ru/releases/
$epmver
/app-versions"
"https://eepm.ru/app-versions"
;
do
# TODO: check eget result, use only 200 OK
ver
=
"
$(
eget
-q
-O-
"
$URL
/
$1
"
|
head
-n1
|
cut
-d
" "
-f1
)
"
[
-n
"
$ver
"
]
&&
echo
"
$ver
"
&&
return
done
}
print_product_alt
()
...
...
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