mirror of
https://github.com/godotengine/build-containers.git
synced 2026-01-07 02:10:46 +03:00
This saves us from pulling gtk2 and gtk3 as weak deps of perl and git or whatnot... And we don't need to pull in all the documentation on Ubuntu. Also ensures that we properly run `dnf clean all` after each installation.
40 lines
2.2 KiB
Docker
40 lines
2.2 KiB
Docker
FROM godot-fedora:latest
|
|
|
|
RUN dnf -y install --setopt=install_weak_deps=False \
|
|
autoconf automake libtool clang cmake fuse fuse-devel libxml2-devel libicu-devel compat-openssl10-devel bzip2-devel kmod cpio && \
|
|
dnf clean all && \
|
|
git clone https://github.com/mackyle/xar.git && \
|
|
cd xar/xar && \
|
|
./autogen.sh --prefix=/usr && \
|
|
make -j && make install && \
|
|
cd /root && \
|
|
git clone https://github.com/NiklasRosenstein/pbzx && \
|
|
cd pbzx && \
|
|
clang -O3 -llzma -lxar -I /usr/local/include pbzx.c -o pbzx
|
|
|
|
CMD mkdir -p /root/xcode && \
|
|
cd /root/xcode && \
|
|
xar -xf /root/files/Xcode_10.3.xip && \
|
|
/root/pbzx/pbzx -n Content | cpio -i && \
|
|
cp -r Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk /tmp/MacOSX10.14.sdk && \
|
|
cp -r Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1 /tmp/MacOSX10.14.sdk/usr/include/c++ && \
|
|
mkdir -p mkdir -p /tmp/MacOSX10.14.sdk/usr/share/man && \
|
|
cp -rf Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/share/man/man1 \
|
|
Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/share/man/man3 \
|
|
Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/share/man/man5 /tmp/MacOSX10.14.sdk/usr/share/man && \
|
|
cd /tmp && \
|
|
tar -cJf /root/files/MacOSX10.14.sdk.tar.xz MacOSX10.14.sdk && \
|
|
rm -rf MacOSX10.14 && \
|
|
cd /root/xcode && \
|
|
cp -r Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk /tmp/iPhoneOS12.4.sdk && \
|
|
cp -r Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1 /tmp/iPhoneOS12.4.sdk/usr/include/c++ && \
|
|
cd /tmp && \
|
|
tar -cJf /root/files/iPhoneOS12.4.sdk.tar.xz iPhoneOS12.4.sdk && \
|
|
rm -rf iPhoneOS12.4.sdk && \
|
|
cd /root/xcode && \
|
|
cp -r Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator.sdk /tmp/iPhoneOS12.4.sdk && \
|
|
cp -r Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1 /tmp/iPhoneOS12.4.sdk/usr/include/c++ && \
|
|
cd /tmp && \
|
|
tar -cJf /root/files/iPhoneSimulator12.4.sdk.tar.xz iPhoneOS12.4.sdk
|
|
|