mirror of
https://github.com/azahar-emu/build-environment
synced 2025-11-06 23:19:59 +01:00
Merged linux-fresh and linux-appimage build envs
This commit is contained in:
parent
9f04824e9e
commit
42d33d36f3
@ -14,16 +14,24 @@ RUN apt-get install -y \
|
||||
clang-format-18 \
|
||||
cmake \
|
||||
curl \
|
||||
file \
|
||||
git \
|
||||
lld \
|
||||
llvm \
|
||||
llvm-18 \
|
||||
ninja-build \
|
||||
p7zip-full \
|
||||
python3-pip \
|
||||
software-properties-common \
|
||||
unzip \
|
||||
wget \
|
||||
zip \
|
||||
# FFmpeg
|
||||
ffmpeg \
|
||||
libavcodec-dev \
|
||||
libavdevice-dev \
|
||||
libavfilter-dev \
|
||||
libavformat-dev \
|
||||
libswresample-dev \
|
||||
libswscale-dev \
|
||||
# Qt 6
|
||||
qt6-base-dev \
|
||||
qt6-base-private-dev \
|
||||
@ -38,3 +46,11 @@ RUN apt-get install -y \
|
||||
glslang-tools \
|
||||
# Other libraries
|
||||
libsdl2-dev
|
||||
|
||||
# Download 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 wget https://github.com/linuxdeploy/linuxdeploy-plugin-checkrt/releases/download/continuous/linuxdeploy-plugin-checkrt-x86_64.sh
|
||||
RUN chmod a+x linuxdeploy-x86_64.AppImage
|
||||
RUN chmod a+x linuxdeploy-plugin-qt-x86_64.AppImage
|
||||
RUN chmod a+x linuxdeploy-plugin-checkrt-x86_64.sh
|
||||
@ -1,75 +0,0 @@
|
||||
FROM ubuntu:20.04
|
||||
|
||||
ENV DEBIAN_FRONTEND=noninteractive
|
||||
|
||||
# Create a user account lime (UID 1027) that the container will run as
|
||||
RUN useradd -m -u 1027 -s /bin/bash lime
|
||||
|
||||
# Update system, install PPAs and install packages for building Lime3DS.
|
||||
RUN apt-get update && apt-get full-upgrade -y
|
||||
RUN apt-get install -y software-properties-common lsb-release
|
||||
RUN add-apt-repository -y ppa:savoury1/build-tools
|
||||
RUN add-apt-repository -y ppa:savoury1/display
|
||||
RUN add-apt-repository -y ppa:savoury1/ffmpeg4
|
||||
RUN add-apt-repository -y ppa:savoury1/gcc-defaults-11
|
||||
RUN add-apt-repository -y ppa:savoury1/llvm-defaults-13
|
||||
RUN add-apt-repository -y ppa:savoury1/qt-6-2
|
||||
RUN add-apt-repository -y ppa:theofficialgman/gpu-tools
|
||||
RUN apt-get update && apt-get upgrade -y && apt-get dist-upgrade -y
|
||||
RUN apt-get install -y \
|
||||
build-essential \
|
||||
libsdl2-dev \
|
||||
libssl-dev \
|
||||
gcc-11 \
|
||||
g++-11 \
|
||||
cpp-11 \
|
||||
# Qt 6
|
||||
qt6-base-dev \
|
||||
qt6-base-private-dev \
|
||||
qt6-multimedia-dev \
|
||||
qt6-l10n-tools \
|
||||
qt6-tools-dev \
|
||||
qt6-tools-dev-tools \
|
||||
qt6-gtk-platformtheme \
|
||||
qt6-documentation-tools \
|
||||
qt6-wayland \
|
||||
# FFmpeg
|
||||
ffmpeg \
|
||||
libavcodec-dev \
|
||||
libavdevice-dev \
|
||||
libavfilter-dev \
|
||||
libavformat-dev \
|
||||
libswresample-dev \
|
||||
libswscale-dev \
|
||||
# Tools
|
||||
cmake \
|
||||
p7zip-full \
|
||||
wget \
|
||||
unzip \
|
||||
git \
|
||||
ccache \
|
||||
ninja-build \
|
||||
glslang-dev \
|
||||
glslang-tools \
|
||||
file \
|
||||
# qt6gtk2 dependencies
|
||||
gtk2.0
|
||||
|
||||
# Install LLVM 15
|
||||
RUN wget https://apt.llvm.org/llvm.sh
|
||||
RUN chmod +x llvm.sh
|
||||
RUN ./llvm.sh 15 all
|
||||
RUN update-alternatives --install /usr/bin/clang++ clang++ /usr/bin/clang++-15 150
|
||||
RUN update-alternatives --install /usr/bin/clang clang /usr/bin/clang-15 150
|
||||
|
||||
# Compile and install qt6gtk2
|
||||
RUN git clone --recursive https://github.com/trialuser02/qt6gtk2
|
||||
RUN cd qt6gtk2 && qmake6 && make && make install
|
||||
|
||||
# Download 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 wget https://github.com/linuxdeploy/linuxdeploy-plugin-checkrt/releases/download/continuous/linuxdeploy-plugin-checkrt-x86_64.sh
|
||||
RUN chmod a+x linuxdeploy-x86_64.AppImage
|
||||
RUN chmod a+x linuxdeploy-plugin-qt-x86_64.AppImage
|
||||
RUN chmod a+x linuxdeploy-plugin-checkrt-x86_64.sh
|
||||
Loading…
x
Reference in New Issue
Block a user