Commit 31c56444 authored by Vitaly Lipatov's avatar Vitaly Lipatov

epm pack generic-appimage.sh: fix BASEDIR to use full unpacked directory name

parent 42c48023
Pipeline #16801 canceled with stage
......@@ -25,6 +25,9 @@ PRODUCT="$(basename $alpkg .AppImage)"
# unpack AppImage
erc unpack $TAR || fatal
# BASEDIR is the unpacked directory (full name without extension)
BASEDIR="$PRODUCT"
# try separate VERSION from PRODUCT
if [ -z "$VERSION" ] ; then
PRODUCT="${PRODUCT/-x86_64/}"
......@@ -32,8 +35,6 @@ if [ -z "$VERSION" ] ; then
[ -n "$VERSION" ] && PRODUCT="$(echo "$PRODUCT" | sed -e "s|[-_.]$VERSION.*||")"
[ -n "$VERSION" ] && VERSION="$(echo "$VERSION" | sed -e 's|^v||')"
fi
BASEDIR="$PRODUCT"
[ -L "$BASEDIR" ] && [ -d "AppDir" ] && BASEDIR="AppDir"
# try get version from X-AppImage-Version
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment