stable appimage deployment done

This commit is contained in:
leca 2025-03-22 12:52:48 +03:00
parent 64f081b522
commit e49a078c80
1 changed files with 2 additions and 24 deletions

View File

@ -1,33 +1,13 @@
FROM ubuntu:18.04
FROM ubuntu:16.04
# Installing dependencies
RUN apt update
RUN DEBIAN_FRONTEND=noninteractive apt install -y qtbase5-dev openssl libmbedtls-dev tesseract-ocr tesseract-ocr-rus libopencv-dev libzbar-dev qttools5-dev nlohmann-json-dev libcurl4-openssl-dev libtesseract-dev libqrencode-dev
RUN DEBIAN_FRONTEND=noninteractive apt install -y wget git cmake make gcc g++ fuse
# For gcc 12
RUN DEBIAN_FRONTEND=noninteractive apt install -y libmpc-dev libmpfr-dev libgmp-dev
# The program uses std::regex_constants::multiline and some other C++17 things that are not found in gcc for Ubuntu Focal. Thus, we should compile it.
RUN DEBIAN_FRONTEND=noninteractive apt install -y wget git cmake make gcc g++ fuse libboost-regex-dev
WORKDIR /
#RUN wget https://mirror.linux-ia64.org/gnu/gcc/releases/gcc-12.3.0/gcc-12.3.0.tar.gz
RUN wget https://mirror.linux-ia64.org/gnu/gcc/releases/gcc-13.3.0/gcc-13.3.0.tar.gz
RUN tar xf gcc-13.3.0.tar.gz
RUN rm gcc-13.3.0.tar.gz
WORKDIR /gcc-13.3.0
RUN ./configure --disable-multilib --prefix=/usr
RUN make -j $(nproc) && make install
RUN cp /usr/lib64/* /usr/lib/x86_64-linux-gnu || :
WORKDIR /
RUN rm -rf gcc-13.3.0
# Download linuxdeployqt
RUN wget https://github.com/probonopd/linuxdeployqt/releases/download/continuous/linuxdeployqt-continuous-x86_64.AppImage -O /usr/bin/linuxdeployqt && \
chmod +x /usr/bin/linuxdeployqt
@ -62,8 +42,6 @@ COPY ./*.h ./*cpp ./*.ui ./*.qrc CMakeLists.txt .
RUN mkdir build
WORKDIR /appimage/build
RUN DEBIAN_FRONTEND=noninteractive apt install -y libboost-regex-dev
RUN cmake -DBUILD_TRANSLATIONS=on .. && make -j 8
WORKDIR /appimage/AppDir/usr/bin