Skip to content

Commit f00ab7e

Browse files
committed
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: * BusKill/buskill-app@ec4a023 * https://github.com/buskill/buskill-app/compare/abbb7a4415f0184e4594623d02b6386f856e2fb5..ec4a0239589cfa7b87432cb2e98e0db886abfaa5 * BusKill/buskill-app#15 (comment)
1 parent 6e51858 commit f00ab7e

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

build/mac/buildDmg.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,17 +11,17 @@ set -x
1111
#
1212
# Authors: Michael Altfield <[email protected]>
1313
# Created: 2020-06-22
14-
# Updated: 2020-09-17
15-
# Version: 0.2
14+
# Updated: 2021-01-30
15+
# Version: 0.3
1616
################################################################################
1717

1818

1919
############
2020
# SETTINGS #
2121
############
2222

23-
PYTHON_PATH="`find /usr/local/Cellar/python@3.7 -type f -name python3.7 | head -n1`"
24-
PIP_PATH="`find /usr/local/Cellar/python@3.7 -type f -name pip3.7 | head -n1`"
23+
PYTHON_PATH="`find /usr/local/Cellar/python@3* -type f -wholename *bin/python3* | sort -n | uniq | head -n1`"
24+
PIP_PATH="`find /usr/local/Cellar/python@3* -type f -wholename *bin/pip3* | sort -n | uniq | head -n1`"
2525
APP_NAME='helloWorld'
2626

2727
PYTHON_VERSION="`${PYTHON_PATH} --version | cut -d' ' -f2`"

0 commit comments

Comments
 (0)