From d4348bd72682a59f8a7057662b86fbd23913c71a Mon Sep 17 00:00:00 2001 From: Dave Page Date: Mon, 15 Mar 2021 13:47:33 +0000 Subject: [PATCH] Fixup shebangs in the venv scripts so they at least work if you're in the same directory. --- pkg/mac/build-functions.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pkg/mac/build-functions.sh b/pkg/mac/build-functions.sh index d69d9c069..92857e515 100644 --- a/pkg/mac/build-functions.sh +++ b/pkg/mac/build-functions.sh @@ -85,6 +85,10 @@ _create_python_env() { done IFS=${OLD_IFS} + # Fixup shebangs + cd "${BUNDLE_DIR}/Contents/Frameworks/Python.framework/Versions/Current/bin" + grep -RiIl 'mac-build' * | xargs sed -i '' 's/\/.*\/python3\./.\/python3./g' + # Remove some things we don't need cd "${BUNDLE_DIR}/Contents/Frameworks/Python.framework" find . -name test -type d -print0 | xargs -0 rm -rf