Commit b00bb271 authored by Vitaly Lipatov's avatar Vitaly Lipatov

erc: unpack exe to subdir, add dll unpacking support

parent bf3b0e74
...@@ -77,6 +77,7 @@ pax ...@@ -77,6 +77,7 @@ pax
zst zst
zstd zstd
exe exe
dll
AppImage AppImage
appimage appimage
squashfs squashfs
......
...@@ -83,7 +83,16 @@ extract_archive() ...@@ -83,7 +83,16 @@ extract_archive()
# TODO: move to patool # TODO: move to patool
if [ "$type" = "exe" ] ; then if [ "$type" = "exe" ] ; then
docmd $HAVE_7Z x "$arc" local subdir="$(basename "$arc" .exe)"
mkdir -p "$subdir" && cd "$subdir" || fatal
docmd $HAVE_7Z x ../"$arc"
exit
fi
if [ "$type" = "dll" ] ; then
local subdir="$(basename "$arc" .dll)"
mkdir -p "$subdir" && cd "$subdir" || fatal
docmd $HAVE_7Z x ../"$arc"
exit exit
fi fi
......
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