mirror of
git://code.qt.io/qt/qt5.git
synced 2026-02-01 19:36:04 +08:00
Add universal binary for Mimer SQL on macOS
Do not use the Mimer SQL installer on macOS since it is not universal.
Instead, use an archive with the needed library and include files.
Use a universal binary on all macOS version from 11 and up.
Fixes: QTBUG-111219
Change-Id: I4a3716b1207ee966f36e977fe5f9d1016fb9efcb
Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@qt.io>
(cherry picked from commit 3d354bf9c0)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
This commit is contained in:
committed by
Qt Cherry-pick Bot
parent
a686f4124d
commit
afe5edbf77
@@ -7,22 +7,26 @@
|
||||
# Mimer SQL is needed for Qt to be able to support Mimer SQL
|
||||
|
||||
set -ex
|
||||
os="$1"
|
||||
|
||||
source "${BASH_SOURCE%/*}/../unix/SetEnvVar.sh"
|
||||
source "${BASH_SOURCE%/*}/../unix/DownloadURL.sh"
|
||||
|
||||
arch=$(uname -m)
|
||||
|
||||
mimerSqlVersion="11.0.7G"
|
||||
if [ "$arch" = "x86_64" ]; then
|
||||
mimerSqlPackageName="mimersql-${mimerSqlVersion}-x86.pkg"
|
||||
SHA1="e8129e66cef8a1cf6639895963ce6155e0acfa90"
|
||||
if [ "$os" = "macos" ]; then
|
||||
arch=$(uname -m)
|
||||
if [ "$arch" = "x86_64" ]; then
|
||||
mimerSqlPackageName="mimersql-110_x86_64.tgz"
|
||||
SHA1="d748f87b72e7188c527f131db2590f552f18f544"
|
||||
else
|
||||
mimerSqlPackageName="mimersql-110_arm64.tgz"
|
||||
SHA1="f209c97074d096e50e637441073e8aa355c5116e"
|
||||
fi
|
||||
else
|
||||
mimerSqlPackageName="mimersql-${mimerSqlVersion}-macosarm_64.pkg"
|
||||
SHA1="82ded8637e5ba79532b552dcfb385d158d6abf74"
|
||||
mimerSqlPackageName="mimersql-110_universal.tgz"
|
||||
SHA1="eab32be623f1cbde7c29cea0f0ca4332b8ca502b"
|
||||
fi
|
||||
|
||||
|
||||
PrimaryUrl="http://ci-files01-hki.ci.qt.io/input/mac/$mimerSqlPackageName"
|
||||
AltUrl="https://install.mimer.com/qt/macOS/$mimerSqlPackageName"
|
||||
appPrefix=""
|
||||
@@ -30,7 +34,7 @@ appPrefix=""
|
||||
DownloadURL "$PrimaryUrl" "$AltUrl" "$SHA1" "/tmp/$mimerSqlPackageName"
|
||||
|
||||
echo "Installing $mimerSqlPackageName"
|
||||
sudo installer -pkg /tmp/$mimerSqlPackageName -target /
|
||||
tar -C /usr/local -zxf /tmp/$mimerSqlPackageName
|
||||
|
||||
echo "Removing $mimerSqlPackageName"
|
||||
rm "/tmp/$mimerSqlPackageName"
|
||||
|
||||
@@ -2,4 +2,4 @@
|
||||
set -ex
|
||||
|
||||
BASEDIR=$(dirname "$0")
|
||||
"$BASEDIR/../common/macos/mimersql.sh"
|
||||
"$BASEDIR/../common/macos/mimersql.sh" "macos"
|
||||
|
||||
@@ -2,4 +2,4 @@
|
||||
set -ex
|
||||
|
||||
BASEDIR=$(dirname "$0")
|
||||
"$BASEDIR/../common/macos/mimersql.sh"
|
||||
"$BASEDIR/../common/macos/mimersql.sh" "macos-universal"
|
||||
|
||||
@@ -2,4 +2,4 @@
|
||||
set -ex
|
||||
|
||||
BASEDIR=$(dirname "$0")
|
||||
"$BASEDIR/../common/macos/mimersql.sh"
|
||||
"$BASEDIR/../common/macos/mimersql.sh" "macos-universal"
|
||||
|
||||
@@ -2,4 +2,4 @@
|
||||
set -ex
|
||||
|
||||
BASEDIR=$(dirname "$0")
|
||||
"$BASEDIR/../common/macos/mimersql.sh"
|
||||
"$BASEDIR/../common/macos/mimersql.sh" "macos-universal"
|
||||
|
||||
@@ -2,4 +2,4 @@
|
||||
set -ex
|
||||
|
||||
BASEDIR=$(dirname "$0")
|
||||
"$BASEDIR/../common/macos/mimersql.sh"
|
||||
"$BASEDIR/../common/macos/mimersql.sh" "macos-universal"
|
||||
|
||||
@@ -2,4 +2,4 @@
|
||||
set -ex
|
||||
|
||||
BASEDIR=$(dirname "$0")
|
||||
"$BASEDIR/../common/macos/mimersql.sh"
|
||||
"$BASEDIR/../common/macos/mimersql.sh" "macos-universal"
|
||||
|
||||
@@ -2,4 +2,4 @@
|
||||
set -ex
|
||||
|
||||
BASEDIR=$(dirname "$0")
|
||||
"$BASEDIR/../common/macos/mimersql.sh"
|
||||
"$BASEDIR/../common/macos/mimersql.sh" "macos-universal"
|
||||
|
||||
@@ -2,4 +2,4 @@
|
||||
set -ex
|
||||
|
||||
BASEDIR=$(dirname "$0")
|
||||
"$BASEDIR/../common/macos/mimersql.sh"
|
||||
"$BASEDIR/../common/macos/mimersql.sh" "macos-universal"
|
||||
|
||||
@@ -2,4 +2,4 @@
|
||||
set -ex
|
||||
|
||||
BASEDIR=$(dirname "$0")
|
||||
"$BASEDIR/../common/macos/mimersql.sh"
|
||||
"$BASEDIR/../common/macos/mimersql.sh" "macos-universal"
|
||||
|
||||
Reference in New Issue
Block a user