scripts: upgrade qt to 6.9.0 for all platforms

Referenced issue:
* https://github.com/status-im/status-desktop/issues/17639
This commit is contained in:
2025-06-26 20:24:46 +05:30
committed by Siddarth Kumar
parent 2c30afefd1
commit 8a6a1bfde5
3 changed files with 15 additions and 24 deletions
+3 -15
View File
@@ -3,16 +3,11 @@ set -eo pipefail
GO_VERSION="1.22.10"
GO_INSTALL_DIR="/usr/local/go"
QT_VERSION="5.15.16_1"
# https://github.com/Homebrew/homebrew-core/commit/2c1970eb750f254ecac6640e7e816fd77a5e065e
QT_BREW_FORMULA_COMMIT_SHA="2c1970eb750f254ecac6640e7e816fd77a5e065e"
QT_FORMULA_URL="https://raw.githubusercontent.com/Homebrew/homebrew-core/${QT_BREW_FORMULA_COMMIT_SHA}/Formula/q/qt%405.rb"
# https://github.com/Homebrew/homebrew-core/commit/b4e46db74e74a8c1650b38b1da222284ce1ec5ce
QT_VERSION="6.9.0"
CMAKE_VERSION="3.31.6"
CMAKE_BREW_FORMULA_COMMIT_SHA="b4e46db74e74a8c1650b38b1da222284ce1ec5ce"
CMAKE_FORMULA_URL="https://raw.githubusercontent.com/Homebrew/homebrew-core/${CMAKE_BREW_FORMULA_COMMIT_SHA}/Formula/c/cmake.rb"
BREW_PREFIX=$(brew --prefix)
QT_INSTALL_DIR="${BREW_PREFIX}/Cellar/qt@5/${QT_VERSION}"
CMAKE_INSTALL_DIR="${BREW_PREFIX}/Cellar/cmake/${CMAKE_VERSION}"
function check_version {
@@ -24,18 +19,12 @@ function check_version {
function install_build_dependencies {
echo "Install build dependencies"
brew install pkg-config libtool jq node@18 yarn protoc-gen-go
brew install pkg-config libtool jq node@18 yarn protoc-gen-go aqtinstall
}
function install_qt {
echo "Installing QT ${QT_VERSION}"
echo "Detected Homebrew prefix: ${BREW_PREFIX}"
echo "Qt will be installed to: ${QT_INSTALL_DIR}"
curl -o /tmp/qt@5.rb "${QT_FORMULA_URL}"
brew install /tmp/qt@5.rb
rm /tmp/qt@5.rb
aqt install-qt mac desktop ${QT_VERSION} clang_64 -m all
}
function install_cmake {
@@ -86,7 +75,6 @@ SUCCESS!
Before you attempt to build status-desktop you'll need a few environment variables set:
export QTDIR=${QT_INSTALL_DIR}
export PATH=\$QTDIR:\$QTDIR/bin:\$PATH
export CMAKE_PREFIX_PATH=${CMAKE_INSTALL_DIR}
"
+5 -2
View File
@@ -3,7 +3,7 @@ set -eo pipefail
GO_VERSION="1.22.10"
GO_INSTALL_DIR="/usr/local/go"
QT_VERSION="5.15.2"
QT_VERSION="6.9.0"
QT_INSTALL_DIR="/opt/qt"
function check_version {
@@ -47,7 +47,10 @@ function install_qt {
apt install -y python3-pip
pip install -U pip
pip install aqtinstall
aqt install-qt linux desktop ${QT_VERSION} gcc_64 -m qtwebengine -O ${QT_INSTALL_DIR}
aqt install-qt linux desktop ${QT_VERSION} linux_gcc_64 -m qtwebchannel \
qtwebview qtwebsockets qt5compat \
qtmultimedia qtwebengine qtpositioning \
qtserialport qtshadertools qtimageformats qtscxml -O ${QT_INSTALL_DIR}
}
function get_go_arch {
+7 -7
View File
@@ -46,12 +46,12 @@ function Install-Dependencies {
function Install-Qt-SDK {
Write-Host "Installing Qt $QtVersion SDK..."
pip install aqtinstall
aqt install-qt -O "C:\Qt" windows desktop $QtVersion win64_msvc2019_64 -m qtwebengine qtlottie
aqt install-qt -O "C:\Qt" windows desktop $QtVersion win64_msvc2022_64 -m all
}
# Install Microsoft Visual C++ Build Tools 16.11.23
# Install Microsoft Visual C++ Build Tools 17.13.35
function Install-VC-BuildTools {
$VCBuildToolsUrl = "https://download.visualstudio.microsoft.com/download/pr/33d686db-3937-4a19-bb3c-be031c5d69bf/66d85abf1020496b07c59aba176def5127352f2fbdd3c4c4143738ab7dfcb459/vs_BuildTools.exe"
$VCBuildToolsUrl = "https://aka.ms/vs/17/release/vs_BuildTools.exe"
$VCBuildToolsExe = "$HOME\Downloads\vs_BuildTools.exe"
Write-Host "Downloading Microsoft Visual C++ Build Tools..."
@@ -81,15 +81,15 @@ SUCCESS!
Before you attempt to build nim-status-client you'll need a few environment variables set:
export QTDIR="/c/Qt/$QtVersion/msvc2019_64"
export Qt5_DIR="/c/Qt/$QtVersion/msvc2019_64"
export QTDIR="/c/Qt/$QtVersion/msvc2022_64"
export Qt5_DIR="/c/Qt/$QtVersion/msvc2022_64"
export VCINSTALLDIR="/c/BuildTools/VC"
You might also have to include the following paths in your `$PATH:
export PATH=`"$env:USERPROFILE/go/bin:`$PATH`"
export PATH=`"/c/BuildTools/MSBuild/Current/Bin:`$PATH`"
export PATH=`"/c/BuildTools/VC/Tools/MSVC/14.29.30133/bin:`$PATH`"
export PATH=`"/c/BuildTools/VC/Tools/MSVC/14.44.35207/bin:`$PATH`"
export PATH=`"/c/ProgramData/scoop/apps/inno-setup/current:`$PATH`"
"@
}
@@ -99,7 +99,7 @@ export PATH=`"/c/ProgramData/scoop/apps/inno-setup/current:`$PATH`"
# Stop the script after first error
$ErrorActionPreference = 'Stop'
# Version of Qt SDK available form aqt
$QtVersion = "5.15.2"
$QtVersion = "6.9.0"
# Don't run when sourcing script
If ($MyInvocation.InvocationName -ne ".") {