mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-02 07:31:26 +00:00
appimage-run: Fix type-1 support, used wrong directory
This commit is contained in:
parent
82cafa41cb
commit
62dc7fbc61
@ -134,7 +134,8 @@ buildFHSUserEnv {
|
||||
|
||||
if ${file}/bin/file --mime-type --brief --keep-going "$APPIMAGE" | grep -q iso; then
|
||||
# is type-1 appimage
|
||||
${libarchive}/bin/bsdtar -x -C "$SQUASHFS_ROOT" -f "$APPIMAGE"
|
||||
mkdir "$APPDIR"
|
||||
${libarchive}/bin/bsdtar -x -C "$APPDIR" -f "$APPIMAGE"
|
||||
else
|
||||
# is type-2 appimage
|
||||
"$APPIMAGE" --appimage-extract 2>/dev/null
|
||||
|
Loading…
Reference in New Issue
Block a user