2022-03-23 22:07:11 +01:00
|
|
|
ARG img_version
|
|
|
|
FROM pandemonium-fedora:${img_version}
|
|
|
|
|
|
|
|
RUN dnf -y install --setopt=install_weak_deps=False \
|
|
|
|
clang xar xar-devel xz-devel cpio && \
|
2024-04-20 17:44:49 +02:00
|
|
|
git clone --progress https://github.com/nrosenstein-stuff/pbzx && \
|
2022-03-23 22:07:11 +01:00
|
|
|
cd pbzx && \
|
2024-04-20 17:44:49 +02:00
|
|
|
git checkout bf536e167f2e514866f91d7baa0df1dff5a13711 && \
|
2022-03-23 22:07:11 +01:00
|
|
|
clang -O3 -llzma -lxar -I /usr/local/include pbzx.c -o pbzx
|
|
|
|
|
|
|
|
|
2022-10-11 16:29:00 +02:00
|
|
|
ENV XCODE_SDKV=
|
|
|
|
ENV OSX_SDKV=
|
|
|
|
ENV IOS_SDKV=
|
2022-03-23 22:07:11 +01:00
|
|
|
|
|
|
|
CMD mkdir -p /root/xcode && \
|
|
|
|
cd /root/xcode && \
|
2022-10-11 16:29:00 +02:00
|
|
|
xar -xf /root/files/Xcode_${XCODE_SDKV}.xip && \
|
2022-03-23 22:07:11 +01:00
|
|
|
/root/pbzx/pbzx -n Content | cpio -i && \
|
2022-10-11 16:29:00 +02:00
|
|
|
export OSX_SDK=MacOSX${OSX_SDKV}.sdk && \
|
2022-03-23 22:07:11 +01:00
|
|
|
cp -r Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk /tmp/${OSX_SDK} && \
|
|
|
|
cd /tmp && \
|
|
|
|
tar -cJf /root/files/${OSX_SDK}.tar.xz ${OSX_SDK} && \
|
|
|
|
rm -rf ${OSX_SDK} && \
|
|
|
|
cd /root/xcode && \
|
2022-10-11 16:29:00 +02:00
|
|
|
export IOS_SDK=iPhoneOS${IOS_SDKV}.sdk && \
|
|
|
|
export IOS_SIMULATOR_SDK=iPhoneSimulator${IOS_SDKV}.sdk && \
|
2022-03-23 22:07:11 +01:00
|
|
|
cp -r Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk /tmp/${IOS_SDK} && \
|
|
|
|
cd /tmp && \
|
|
|
|
tar -cJf /root/files/${IOS_SDK}.tar.xz ${IOS_SDK} && \
|
|
|
|
rm -rf ${IOS_SDK} && \
|
|
|
|
cd /root/xcode && \
|
2024-04-20 17:44:49 +02:00
|
|
|
cp -r Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator.sdk /tmp/${IOS_SIMULATOR_SDK} && \
|
2022-03-23 22:07:11 +01:00
|
|
|
cd /tmp && \
|
2024-04-20 17:44:49 +02:00
|
|
|
tar -cJf /root/files/${IOS_SIMULATOR_SDK}.tar.xz ${IOS_SIMULATOR_SDK} && \
|
|
|
|
rm -rf ${IOS_SIMULATOR_SDK}
|
|
|
|
|