Add support for osxcross.
This commit is contained in:
parent
b979f9a579
commit
9a1e45f9e3
18
Dockerfile
18
Dockerfile
@ -26,15 +26,18 @@ RUN echo docker_cross_compiler > /etc/hostname
|
|||||||
cmake \
|
cmake \
|
||||||
clang \
|
clang \
|
||||||
cpio \
|
cpio \
|
||||||
|
curl \
|
||||||
dotnet-sdk-6.0 \
|
dotnet-sdk-6.0 \
|
||||||
gcc-arm-linux-gnueabihf \
|
gcc-arm-linux-gnueabihf \
|
||||||
gcc-aarch64-linux-gnu \
|
gcc-aarch64-linux-gnu \
|
||||||
gcc-i686-linux-gnu \
|
gcc-i686-linux-gnu \
|
||||||
git \
|
git \
|
||||||
|
libbz2-dev \
|
||||||
libharfbuzz-dev \
|
libharfbuzz-dev \
|
||||||
libpng-dev \
|
libpng-dev \
|
||||||
libssl-dev \
|
libssl-dev \
|
||||||
libxml2-dev \
|
libxml2-dev \
|
||||||
|
llvm \
|
||||||
lzma-dev \
|
lzma-dev \
|
||||||
mingw-w64 \
|
mingw-w64 \
|
||||||
meson \
|
meson \
|
||||||
@ -43,12 +46,21 @@ RUN echo docker_cross_compiler > /etc/hostname
|
|||||||
nodejs \
|
nodejs \
|
||||||
patch \
|
patch \
|
||||||
python3 \
|
python3 \
|
||||||
|
uuid \
|
||||||
xz-utils \
|
xz-utils \
|
||||||
zlib1g-dev
|
zlib1g-dev
|
||||||
|
|
||||||
# Clone osxcross
|
# Clone osxcross
|
||||||
# Let's do this later.
|
# Let's do this later.
|
||||||
# RUN git clone https://github.com/tpoechtrager/osxcross.git osxcross
|
RUN git clone --recurse-submodules "https://github.com/tpoechtrager/osxcross.git" osxcross
|
||||||
|
|
||||||
|
# Download packaged SDK from this random github (very safe i know)
|
||||||
|
WORKDIR /root/osxcross/tarballs
|
||||||
|
RUN wget "https://github.com/joseluisq/macosx-sdks/releases/download/14.0/MacOSX14.0.sdk.tar.xz" -O "MacOSX14.0.sdk.tar.xz"
|
||||||
|
|
||||||
|
WORKDIR /root/osxcross
|
||||||
|
ENV UNATTENDED=1 TARGET_DIR=/usr/local SDK_DIR=/usr/local/osxcross-sdk
|
||||||
|
RUN bash -c "./build.sh"
|
||||||
|
|
||||||
# Setup interactive shell.
|
# Setup interactive shell.
|
||||||
# Setup sudo. Remove password prompt for group "wheel".
|
# Setup sudo. Remove password prompt for group "wheel".
|
||||||
@ -56,12 +68,14 @@ RUN echo docker_cross_compiler > /etc/hostname
|
|||||||
|
|
||||||
# Create a default user and switch.
|
# Create a default user and switch.
|
||||||
RUN adduser --comment "" --disabled-password quik
|
RUN adduser --comment "" --disabled-password quik
|
||||||
|
RUN addgroup wheel
|
||||||
|
RUN usermod -aG wheel quik
|
||||||
USER quik
|
USER quik
|
||||||
WORKDIR /home/quik
|
WORKDIR /home/quik
|
||||||
|
|
||||||
# Copy bashrc
|
# Copy bashrc
|
||||||
RUN cp /etc/bash.bashrc ~/.bashrc
|
RUN cp /etc/bash.bashrc ~/.bashrc
|
||||||
RUN echo source $HOME/src/sh/bashrc.sh >> ~/.bashrc
|
COPY sh/bashrc.sh /home/quik/.bashrc
|
||||||
|
|
||||||
# Execute an interactive shell.
|
# Execute an interactive shell.
|
||||||
CMD bash
|
CMD bash
|
||||||
|
Loading…
Reference in New Issue
Block a user