Skip to content

Commit ec6ee85

Browse files
committed
Dowload dependencies to script location
1 parent 9177e46 commit ec6ee85

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

linuxdeploy-plugin-python.sh

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -201,8 +201,10 @@ cp "$BASEDIR/share/sitecustomize.py" "$APPDIR"/${prefix}/lib/python*/site-packag
201201
# Patch binaries and install dependencies
202202
excludelist="${BASEDIR}/share/excludelist"
203203
if [[ ! -f "${excludelist}" ]]; then
204+
pushd "${BASEDIR}"
204205
wget -cq --no-check-certificate "https://raw.githubusercontent.com/probonopd/AppImages/master/excludelist"
205-
excludelist="excludelist"
206+
excludelist="$(pwd)/excludelist"
207+
popd
206208
fi
207209
excludelist=$(cat "${excludelist}" | sed 's|#.*||g' | sed -r '/^\s*$/d')
208210

@@ -220,9 +222,11 @@ set -e
220222
patchelf="${patchelf:-${BASEDIR}/usr/bin/patchelf}"
221223
if [[ ! -x "${patchelf}" ]]; then
222224
ARCH="${ARCH:-x86_64}"
225+
pushd "${BASEDIR}"
223226
wget -cq https://github.com/niess/patchelf.appimage/releases/download/${ARCH}/patchelf-${ARCH}.AppImage
224227
patchelf="$(pwd)/patchelf-${ARCH}.AppImage"
225228
chmod u+x "${patchelf}"
229+
popd
226230
fi
227231

228232
patch_binary() {

0 commit comments

Comments
 (0)