|
2 | 2 | set -euxo pipefail |
3 | 3 | BUILD_INSTALLER=${BUILD_INSTALLER:-true} |
4 | 4 | TRIK_QT_VERSION=${TRIK_QT_VERSION:-5.15} |
5 | | -XCODE_VERSION=${XCODE_VERSION:-14.3} # 14.3 on GHA worker is compatible with Qt5.15 |
| 5 | +XCODE_VERSION=${XCODE_VERSION:-15.3} |
6 | 6 | TRIK_PYTHON3_VERSION_MINOR=${TRIK_PYTHON3_VERSION_MINOR:-11} |
7 | 7 |
|
8 | 8 |
|
@@ -30,14 +30,30 @@ case "$(uname)" in |
30 | 30 | Darwin) |
31 | 31 | export HOMEBREW_NO_INSTALL_CLEANUP=1 |
32 | 32 | export HOMEBREW_NO_AUTO_UPDATE=1 |
| 33 | + TRIK_PYTHON3_VERSION_PATCH=${TRIK_PYTHON3_VERSION_PATCH:-0} |
33 | 34 | brew tap "hudochenkov/sshpass" |
34 | | - TRIK_BREW_PACKAGES="ccache coreutils libusb pkg-config gnu-sed sshpass p7zip python@3.${TRIK_PYTHON3_VERSION_MINOR}" |
| 35 | + TRIK_BREW_PACKAGES="ccache coreutils pkg-config gnu-sed sshpass p7zip" |
35 | 36 | for pkg in $TRIK_BREW_PACKAGES ; do |
36 | 37 | p="${pkg##*/}" |
37 | 38 | p="${p%.*}" |
38 | 39 | brew install --quiet "$pkg" || brew upgrade "$pkg" || brew link --force "$pkg" || echo "Failed to install/upgrade $pkg" |
39 | 40 | done |
40 | 41 | modules=("qtscript") |
| 42 | + |
| 43 | + PYTHON_VERSION="3.${TRIK_PYTHON3_VERSION_MINOR}.$TRIK_PYTHON3_VERSION_PATCH" |
| 44 | + PYTHON_INSTALLER_NAME="python-$PYTHON_VERSION-macos11.pkg" |
| 45 | + PYTHON_DOWNLOAD_URL="https://www.python.org/ftp/python/$PYTHON_VERSION/${PYTHON_INSTALLER_NAME}" |
| 46 | + curl -o "/tmp/${PYTHON_INSTALLER_NAME}" "${PYTHON_DOWNLOAD_URL}" |
| 47 | + sudo installer -pkg "/tmp/${PYTHON_INSTALLER_NAME}" -target / |
| 48 | + |
| 49 | + MACPORTS_PKG="MacPorts-2.11.6-14-Sonoma.pkg" |
| 50 | + MACPORTS_URL="https://github.com/macports/macports-base/releases/download/v2.11.6/${MACPORTS_PKG}" |
| 51 | + curl -L --fail --output "${MACPORTS_PKG}" "${MACPORTS_URL}" |
| 52 | + sudo installer -pkg "${MACPORTS_PKG}" -target / |
| 53 | + export PATH="/opt/local/bin:$PATH" |
| 54 | + sudo port selfupdate |
| 55 | + sudo port install libusb +universal |
| 56 | + |
41 | 57 | install_qt mac desktop "${TRIK_QT_VERSION}" "$HOME/Qt" $modules |
42 | 58 | sudo xcode-select -s /Applications/Xcode_${XCODE_VERSION}.app/Contents/Developer |
43 | 59 | xcodebuild -showsdks |
|
0 commit comments