Skip to content

Commit 42f22a6

Browse files
committed
apparently my mac has python version 3.7.3 but github's is 3.7.7.
* https://github.com/actions/virtual-environments/blob/master/images/macos/macos-10.15-Readme.md#language-and-runtime I'm just going to determine these dynamically, but it should probably be able to have the user set a specific version in the SETTINGS, then the script goes and fetches that version of python. For now I just want to get *something* working before all my 10x mac minutes expire for github workflows for the month :/
1 parent e922f6d commit 42f22a6

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

build/mac/buildDmg.sh

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,12 @@ set -x
1919
# SETTINGS #
2020
############
2121

22-
PYTHON_VERSION="3.7.3"
23-
PYTHON_EXEC_VERSION="python3.7"
2422
PYTHON_PATH='/usr/bin/python3'
2523
APP_NAME='helloWorld'
2624

25+
PYTHON_VERSION="`${PYTHON_PATH} --version | cut -d' ' -f2`"
26+
PYTHON_EXEC_VERSION="`echo ${PYTHON_VERSION} | cut -d. -f1-2`"
27+
2728
###################
2829
# INSTALL DEPENDS #
2930
###################
@@ -213,8 +214,6 @@ sed -i '' "s;3.5.0;$PYTHON_VERSION;g" package_app.py
213214
sed -i '' "s;\.decode('utf-8');;g" package_app.py
214215
popd
215216

216-
popd
217-
218217
#############
219218
# BUILD APP #
220219
#############

0 commit comments

Comments
 (0)