0
0
mirror of https://github.com/python-LimeReport/containers.git synced 2025-10-14 23:32:48 +03:00
This commit is contained in:
2024-03-21 17:38:21 +03:00
parent 6aff051794
commit 9b356ef67a
7 changed files with 106 additions and 28 deletions

View File

@@ -5,12 +5,21 @@ source "$HOME/.bashrc"
# check is x86
if [[ "$(uname -m)" == "x86_64" ]]; then
apt-get update && \
apt-get update && \
DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
p7zip-full \
&& rm -rf /var/lib/apt/lists/*
aqt install-qt --outputdir /opt/Qt linux desktop ${QT_VERSION}
cd /opt/Qt/${QT_VERSION}
mv gcc_64/* .
mv gcc_64/.* .
rmdir gcc_64
else
aqt -c /aqt.cfg install-src --outputdir /opt/Qt-src linux desktop ${QT_VERSION}
cd /opt/Qt-src/${QT_VERSION}/Src
/qt-patches/apply-patches.sh
apt-get update && \
DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
build-essential \
@@ -110,12 +119,12 @@ else
libhunspell-dev \
&& rm -rf /var/lib/apt/lists/*
aqt install-src --outputdir /opt/Qt linux desktop ${QT_VERSION}
cd /opt/Qt/${QT_VERSION}/Src
./configure -release -opensource -confirm-license -skip qtwebengine
cmake --build . --parallel $(nproc)
cmake --install .
fi
# else if arm build from sources
mkdir -p /opt/Qt/${QT_VERSION}
cd /opt/Qt-src/${QT_VERSION}/Src
./configure -release -opensource -confirm-license -skip qtwebengine -prefix /opt/Qt/${QT_VERSION}
make -j$(nproc)
cmake --build . --parallel $(nproc) || exit 1
cmake --install . || exit 1
rm -rf /opt/Qt-src
fi