Repair appimage-builder in docker

This commit is contained in:
zontreck 2024-07-23 17:10:04 -07:00
parent d575bdb603
commit 8a4276db93

View file

@ -1,8 +1,7 @@
FROM git.zontreck.com/ariascreations/buildenvironments:debian
ENV APPIMAGE_BUILDER_VER 1.1.0
ENV GRADLE_VERSION 8.3
RUN apt install -y build-essential cmake ninja-build openjdk-17-jdk nasm git curl wget openjdk-17-jre android-sdk android-sdk-build-tools android-sdk-platform-tools clang pkg-config unzip libgtk-3-dev zip lldb libglu1-mesa libpulse0 cargo python3-dev libffi-dev libssl-dev apt-utils
RUN apt install -y build-essential cmake ninja-build openjdk-17-jdk nasm git curl wget openjdk-17-jre clang pkg-config unzip libgtk-3-dev zip lldb libglu1-mesa libpulse0 cargo python3-dev libffi-dev libssl-dev apt-utils
RUN apt install -y fonts-liberation libgtk-4-1 libgbm1 libu2f-udev libvulkan1 xdg-utils gradle
@ -21,7 +20,13 @@ WORKDIR /
# Install AppImage Builder
RUN curl -sO https://github.com/AppImageCrafters/appimage-builder/releases/download/v${APPIMAGE_BUILDER_VER}/appimage-builder-${APPIMAGE_BUILDER_VER}-x86_64.AppImage
RUN python3 -m pip install --upgrade pip
RUN pip3 install appimage-builder
RUN mv appimage-builder-${APPIMAGE_BUILDER_VER}-x86_64.AppImage /bin/appimage-builder
RUN chmod +x /bin/appimage-builder
# Install appimagetool AppImage
RUN wget https://github.com/AppImage/AppImageKit/releases/download/continuous/appimagetool-x86_64.AppImage -O /opt/appimagetool
# workaround AppImage issues with Docker
RUN cd /opt/; chmod +x appimagetool; sed -i 's|AI\x02|\x00\x00\x00|' appimagetool; ./appimagetool --appimage-extract
RUN mv /opt/squashfs-root /opt/appimagetool.AppDir
RUN ln -s /opt/appimagetool.AppDir/AppRun /usr/local/bin/appimagetool