Skip to content

Commit

Permalink
fix the path to the python binaries in MacOS
Browse files Browse the repository at this point in the history
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)
  • Loading branch information
maltfield committed Jan 30, 2021
1 parent 6e51858 commit f00ab7e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions build/mac/buildDmg.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,17 +11,17 @@ set -x
#
# Authors: Michael Altfield <[email protected]>
# Created: 2020-06-22
# Updated: 2020-09-17
# Version: 0.2
# Updated: 2021-01-30
# Version: 0.3
################################################################################


############
# 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`"
Expand Down

0 comments on commit f00ab7e

Please sign in to comment.