From 66014b5b7a3d32a207a39eaf202c5c1cf4d9b3d8 Mon Sep 17 00:00:00 2001 From: MT19048 <86961834+MT19048@users.noreply.github.com> Date: Sun, 9 Apr 2023 11:23:53 +0200 Subject: [PATCH] Add linux-appimage dockerfile (#40) * Create Dockerfile * Update Dockerfile * Add AppImage Dockercontainer * Add missing RUN before commands * Add missing depenencies * Change to Debian 11 Change to Debian 11 for more compatibility on older Distros --- .github/workflows/ci.yml | 2 +- linux-appimage/Dockerfile | 48 +++++++++++++++++++++++++++++++++++++++ 2 files changed, 49 insertions(+), 1 deletion(-) create mode 100644 linux-appimage/Dockerfile diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index c0b067e..e5b9cbd 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -10,7 +10,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - image: ["linux-clang-format", "linux-flatpak", "linux-fresh", "linux-frozen", "linux-mingw", "linux-transifex"] + image: ["linux-appimage", "linux-clang-format", "linux-flatpak", "linux-fresh", "linux-frozen", "linux-mingw", "linux-transifex"] steps: - uses: actions/checkout@v2 diff --git a/linux-appimage/Dockerfile b/linux-appimage/Dockerfile new file mode 100644 index 0000000..c7f618d --- /dev/null +++ b/linux-appimage/Dockerfile @@ -0,0 +1,48 @@ +FROM debian:11 +LABEL maintainer="citraemu" +ENV DEBIAN_FRONTEND=noninteractive + +# Create a user account citra (UID 1027) that the container will run as +RUN useradd -m -u 1027 -s /bin/bash citra +RUN apt-get update && apt-get -y full-upgrade +RUN apt-get install -y \ + p7zip-full \ + build-essential \ + software-properties-common \ + libsdl2-dev \ + qtbase5-dev \ + qtbase5-private-dev \ + libqt5opengl5-dev \ + qtmultimedia5-dev \ + qttools5-dev \ + qttools5-dev-tools \ + libavcodec-dev \ + libavfilter-dev \ + libavformat-dev \ + libswscale-dev \ + wget \ + git \ + ccache \ + ninja-build \ + libssl-dev \ + libqt5multimedia5-plugins \ + ffmpeg \ + libavdevice-dev \ + glslang-dev \ + glslang-tools \ + qt5-gtk-platformtheme \ + qt5ct \ + qt5-style-plugins \ + && \ +# Install updated version of cmake and missing libfdk-aac-dev + apt-add-repository 'deb http://deb.debian.org/debian bullseye main contrib non-free' && \ + apt-add-repository 'deb http://deb.debian.org/debian bullseye-backports main contrib non-free' && \ + apt-get update -y && \ + apt-get install -y \ + libfdk-aac-dev \ + cmake/bullseye-backports +# Downloading Tools for Building AppImages +RUN wget https://github.com/linuxdeploy/linuxdeploy/releases/download/continuous/linuxdeploy-x86_64.AppImage +RUN wget https://github.com/linuxdeploy/linuxdeploy-plugin-qt/releases/download/continuous/linuxdeploy-plugin-qt-x86_64.AppImage +RUN chmod a+x linuxdeploy-x86_64.AppImage +RUN chmod a+x linuxdeploy-plugin-qt-x86_64.AppImage