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
e074f688
Commit
e074f688
authored
May 27, 2025
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
erc: fix path to unpacked archives
parent
a686a6fe
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
5 deletions
+7
-5
tools_erc
bin/tools_erc
+7
-5
No files found.
bin/tools_erc
View file @
e074f688
...
@@ -81,24 +81,26 @@ extract_archive()
...
@@ -81,24 +81,26 @@ extract_archive()
local type
=
"
$(
get_archive_type
"
$arc
"
)
"
local type
=
"
$(
get_archive_type
"
$arc
"
)
"
[
-n
"
$type
"
]
||
fatal
"Can't recognize type of
$arc
."
[
-n
"
$type
"
]
||
fatal
"Can't recognize type of
$arc
."
local
rarc
=
"
$(
realpath
-s
"
$arc
"
)
"
# TODO: move to patool
# TODO: move to patool
if
[
"
$type
"
=
"exe"
]
;
then
if
[
"
$type
"
=
"exe"
]
;
then
local
subdir
=
"
$(
basename
"
$arc
"
.exe
)
"
local
subdir
=
"
$(
basename
"
$arc
"
.exe
)
"
mkdir
-p
"
$subdir
"
&&
cd
"
$subdir
"
||
fatal
mkdir
-p
"
$subdir
"
&&
cd
"
$subdir
"
||
fatal
docmd
$HAVE_7Z
x
../
"
$
arc
"
docmd
$HAVE_7Z
x
"
$r
arc
"
exit
exit
fi
fi
if
[
"
$type
"
=
"dll"
]
;
then
if
[
"
$type
"
=
"dll"
]
;
then
local
subdir
=
"
$(
basename
"
$arc
"
.dll
)
"
local
subdir
=
"
$(
basename
"
$arc
"
.dll
)
"
mkdir
-p
"
$subdir
"
&&
cd
"
$subdir
"
||
fatal
mkdir
-p
"
$subdir
"
&&
cd
"
$subdir
"
||
fatal
docmd
$HAVE_7Z
x
../
"
$
arc
"
docmd
$HAVE_7Z
x
"
$r
arc
"
exit
exit
fi
fi
if
[
"
$type
"
=
"AppImage"
]
||
[
"
$type
"
=
"appimage"
]
;
then
if
[
"
$type
"
=
"AppImage"
]
||
[
"
$type
"
=
"appimage"
]
;
then
docmd
chmod
u+x
"
$arc
"
||
fatal
"Can't set executable permission"
docmd
chmod
u+x
"
$
r
arc
"
||
fatal
"Can't set executable permission"
docmd
"
$
(
realpath
$arc
)
"
--appimage-extract
docmd
"
$
rarc
"
--appimage-extract
mv
squashfs-root
"
$(
basename
"
$(
basename
"
$arc
"
.AppImage
)
"
.appimage
)
"
mv
squashfs-root
"
$(
basename
"
$(
basename
"
$arc
"
.AppImage
)
"
.appimage
)
"
exit
exit
fi
fi
...
@@ -106,7 +108,7 @@ extract_archive()
...
@@ -106,7 +108,7 @@ extract_archive()
if
[
"
$type
"
=
"squashfs"
]
;
then
if
[
"
$type
"
=
"squashfs"
]
;
then
local
subdir
=
"
$(
basename
"
$arc
"
.squashfs
)
"
local
subdir
=
"
$(
basename
"
$arc
"
.squashfs
)
"
mkdir
-p
"
$subdir
"
&&
cd
"
$subdir
"
||
fatal
mkdir
-p
"
$subdir
"
&&
cd
"
$subdir
"
||
fatal
docmd
$HAVE_7Z
x
../
"
$
arc
"
docmd
$HAVE_7Z
x
"
$r
arc
"
exit
exit
fi
fi
...
...
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