From f00ab7e1e24146cc2996ea1cf61d4846f750be3c Mon Sep 17 00:00:00 2001 From: Michael Altfield Date: Sat, 30 Jan 2021 13:21:47 +0100 Subject: [PATCH] fix the path to the python binaries in MacOS This commit makes the MacOS build script more robust so that it's able to survive when GitHub updates their MacOS shared runners python version (and deletes the old python binaires). For more info, see: * https://github.com/BusKill/buskill-app/commit/ec4a0239589cfa7b87432cb2e98e0db886abfaa5 * https://github.com/buskill/buskill-app/compare/abbb7a4415f0184e4594623d02b6386f856e2fb5..ec4a0239589cfa7b87432cb2e98e0db886abfaa5 * https://github.com/BusKill/buskill-app/pull/15#issuecomment-736119362 --- build/mac/buildDmg.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/build/mac/buildDmg.sh b/build/mac/buildDmg.sh index 3b7da54c..afd569f4 100755 --- a/build/mac/buildDmg.sh +++ b/build/mac/buildDmg.sh @@ -11,8 +11,8 @@ set -x # # Authors: Michael Altfield # Created: 2020-06-22 -# Updated: 2020-09-17 -# Version: 0.2 +# Updated: 2021-01-30 +# Version: 0.3 ################################################################################ @@ -20,8 +20,8 @@ set -x # SETTINGS # ############ -PYTHON_PATH="`find /usr/local/Cellar/python@3.7 -type f -name python3.7 | head -n1`" -PIP_PATH="`find /usr/local/Cellar/python@3.7 -type f -name pip3.7 | head -n1`" +PYTHON_PATH="`find /usr/local/Cellar/python@3* -type f -wholename *bin/python3* | sort -n | uniq | head -n1`" +PIP_PATH="`find /usr/local/Cellar/python@3* -type f -wholename *bin/pip3* | sort -n | uniq | head -n1`" APP_NAME='helloWorld' PYTHON_VERSION="`${PYTHON_PATH} --version | cut -d' ' -f2`"