Skip to content

Commit

Permalink
Dockerfile-build-env: Build linuxdeploy and the appimage plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
andy5995 committed Feb 1, 2024
1 parent e81473f commit 126491c
Showing 1 changed file with 31 additions and 33 deletions.
64 changes: 31 additions & 33 deletions support/docker/Dockerfile-build-env
Original file line number Diff line number Diff line change
Expand Up @@ -25,46 +25,44 @@ RUN apt upgrade -y && apt install -y \
libphysfs-dev \
libsdl2-dev \
libsdl2-mixer-dev \
libsdl2-ttf-dev \
xxd && \
libsdl2-ttf-dev && \
if [ "$CODENAME" = "focal" ]; then \
apt install -y python3-pip; \
python3 -m pip install meson ninja; \
else \
apt install -y meson ninja-build; \
fi

RUN if [ $CODENAME="focal" ]; then \
apt install -y \
cmake \
desktop-file-utils \
fuse \
libgcrypt-dev \
libglib2.0-dev \
libgpgme-dev \
libfuse-dev \
libcairo-dev \
libfuse2 \
libssl-dev && \
git clone --depth 1 --branch 13 https://github.com/AppImage/AppImageKit --recurse-submodules && \
cd AppImageKit && mkdir build && cd build && \
cmake .. && make -j$(nproc) && make install && cd ../.. && \
rm -rf AppImageKit && \
apt remove -y \
cmake \
libglib2.0-dev \
libgpgme-dev \
libfuse-dev \
libssl-dev \
libgcrypt-dev && \
apt autoremove -y && \
apt install -y \
libglib2.0-0 \
libgpgme11 \
libfuse2 \
libssl1.1 \
libgcrypt20; \
fi
RUN if [ "$CODENAME"="focal" ]; then \
apt install -y \
cmake \
desktop-file-utils \
fuse \
libgcrypt-dev \
libglib2.0-dev \
libpng-dev \
libjpeg-dev \
libgpgme-dev \
libfuse-dev \
libcairo-dev \
libfuse2 \
libssl-dev \
patchelf \
xxd && \
git clone --depth 1 --branch 1-alpha-20240109-1 https://github.com/linuxdeploy/linuxdeploy --recurse-submodules && \
cd linuxdeploy && cp src/core/copyright/copyright.h src/core && \
cmake . -G Ninja && ninja && ninja install && cd .. && \
rm -rf linuxdeploy && \
git clone --depth 1 --branch 1-alpha-20230713-1 https://github.com/linuxdeploy/linuxdeploy-plugin-appimage --recurse-submodules && \
cd linuxdeploy-plugin-appimage && \
cmake . -G Ninja && ninja && ninja install && cd .. && \
rm -rf linuxdeploy-plugin-appimage && \
git clone --depth 1 --branch 13 https://github.com/AppImage/AppImageKit --recurse-submodules && \
cd AppImageKit && \
cmake . && make -j $(nproc) && make install && cd .. && \
rm -rf AppImageKit && \
apt remove -y cmake; \
fi

RUN useradd -m npbuilder && passwd -d npbuilder

Expand Down

0 comments on commit 126491c

Please sign in to comment.