appimage-run: Fix type-1 support, used wrong directory
commit62dc7fbc6170e9c96fed8eda70783bb012f57a84
authortilpner <till@hoeppner.ws>
dateTue 16 Oct 2018, 13:55 (8 years ago)
parent82cafa4
pkgs/tools/package-management/appimage-run/default.nix+2−1
@@ -134,7 +134,8 @@ buildFHSUserEnv {
134134
135135 if ${file}/bin/file --mime-type --brief --keep-going "$APPIMAGE" | grep -q iso; then
136136 # is type-1 appimage
137− ${libarchive}/bin/bsdtar -x -C "$SQUASHFS_ROOT" -f "$APPIMAGE"
137+ mkdir "$APPDIR"
138+ ${libarchive}/bin/bsdtar -x -C "$APPDIR" -f "$APPIMAGE"
138139 else
139140 # is type-2 appimage
140141 "$APPIMAGE" --appimage-extract 2>/dev/null