From 79668c1f9bd96423602f318268a2cedcada1ba10 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BC=A0=E6=96=87=E5=85=B5?= Date: Wed, 10 May 2023 18:51:21 +0800 Subject: [PATCH] fix(osx): Integrating python --- .github/workflows/main.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index f174508..e0953ae 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -330,6 +330,11 @@ jobs: cd rdm/bin/osx/release zip -q -r release.zip . cp -Rf py ./RESP.app/Contents/Resources/ + python_version=$(python3 -c "import sys; print('.'.join(map(str, sys.version_info[:2])))") + echo ${python_version} + brew install python@${python_version} + cp -Rf /usr/local/Cellar/python@${python_version}/*/Frameworks/ ./RESP.app/Contents/Frameworks/ + install_name_tool -change /Library/Frameworks/Python.framework/Versions/${python_version}/Python @rpath/Python.framework/Versions/${python_version}/Python ./RESP.app/Contents/MacOS/RESP otool -L ./RESP.app/Contents/MacOS/RESP macdeployqt ./RESP.app -qmldir=../../../src/qml -always-overwrite -dmg