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
909cafb8
Commit
909cafb8
authored
Mar 11, 2024
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
epm repack: add hack for get AppImage version from URL
parent
9fe9090c
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
2 deletions
+10
-2
epm-pack
bin/epm-pack
+1
-1
epm-repack
bin/epm-repack
+2
-1
generic-appimage.sh
pack.d/generic-appimage.sh
+7
-0
No files found.
bin/epm-pack
View file @
909cafb8
...
...
@@ -30,7 +30,7 @@ __epm_pack_run_handler()
local
packname
=
"
$1
"
local
tarname
=
"
$2
"
local
packversion
=
"
$3
"
local
url
=
"
$
3
"
local
url
=
"
$
4
"
returntarname
=
''
local
repackcode
=
"
$EPM_PACK_SCRIPTS_DIR
/
$packname
.sh"
...
...
bin/epm-repack
View file @
909cafb8
...
...
@@ -109,7 +109,8 @@ __prepare_source_package()
# they will fill $returntarname
if
rhas
"
$alpkg
"
"
\.
AppImage$"
;
then
__epm_pack_run_handler generic-appimage
"
$pkg
"
# big hack with $pkg_urls_downloaded (it can be a list, not a single url)
__epm_pack_run_handler generic-appimage
"
$pkg
"
""
"
$pkg_urls_downloaded
"
SUBGENERIC
=
'appimage'
elif
rhas
"
$alpkg
"
"
\.
snap$"
;
then
__epm_pack_run_handler generic-snap
"
$pkg
"
...
...
pack.d/generic-appimage.sh
View file @
909cafb8
...
...
@@ -3,6 +3,7 @@
TAR
=
"
$1
"
RETURNTARNAME
=
"
$2
"
VERSION
=
"
$3
"
URL
=
"
$4
"
.
$(
dirname
$0
)
/common.sh
...
...
@@ -29,6 +30,12 @@ str="$(grep '^X-AppImage-Version=' $DESKTOPFILE)"
if
[
-n
"
$str
"
]
;
then
VERSION
=
"
$(
echo
$str
|
sed
-e
's|.*X-AppImage-Version=||'
)
"
fi
# https://github.com/neovide/neovide/releases/download/0.12.2/neovide.AppImage
if
[
-z
"
$VERSION
"
]
&&
rhas
"
$URL
"
"github.com.*/releases/download"
;
then
VERSION
=
"
$(
echo
"
$URL
"
|
sed
-e
's|.*/releases/download/||'
-e
"s|/
$alpkg
||"
)
"
fi
[
-n
"
$VERSION
"
]
||
fatal
"Can't get version from
$TAR
."
PKGNAME
=
$PRODUCT
-
$VERSION
.tar
...
...
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