Skip to content

Commit

Permalink
.packaging: Strip libwow64fex.dll
Browse files Browse the repository at this point in the history
  • Loading branch information
AndreRH committed Jan 13, 2024
1 parent 9c11fa6 commit ec10b52
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .packaging/debian12/fexpe/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@ RUN ls -la /opt/fex/
ENV PATH="/opt/llvm-mingw-20231017-ucrt-ubuntu-20.04-x86_64/bin:$PATH"
RUN cd /opt/fex; mkdir build; cd build; cmake -DCMAKE_TOOLCHAIN_FILE=../toolchain_mingw.cmake -DENABLE_JEMALLOC=0 -DENABLE_JEMALLOC_GLIBC_ALLOC=0 -DMINGW_TRIPLE=aarch64-w64-mingw32 -DCMAKE_BUILD_TYPE=RelWithDebInfo -DBUILD_TESTS=False -DENABLE_ASSERTIONS=False ..; make -j `nproc` wow64fex
RUN ls -la /opt/fex/build/Bin
RUN echo -n "Wine builtin DLL" > /tmp/builtin.template.1; dd if=/dev/zero of=/tmp/builtin.template.2 bs=16 count=1; cat /tmp/builtin.template.1 /tmp/builtin.template.2 > /tmp/builtin.template; dd if=/tmp/builtin.template of=/opt/fex/build/Bin/libwow64fex.dll bs=32 count=1 seek=2 conv=notrunc # patch dll to be picked up by wineboot
RUN aarch64-w64-mingw32-strip --strip-unneeded /opt/fex/build/Bin/libwow64fex.dll
RUN printf "Wine builtin DLL\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" > /tmp/builtin.template; dd if=/tmp/builtin.template of=/opt/fex/build/Bin/libwow64fex.dll bs=32 count=1 seek=2 conv=notrunc # patch dll to be picked up by wineboot
RUN mkdir -p /opt/deb/hangover-libwow64fex/DEBIAN /opt/deb/hangover-libwow64fex/usr/lib/wine/aarch64-windows /opt/deb/hangover-libwow64fex/usr/share/doc/hangover-libwow64fex
COPY DEBIAN /opt/deb/hangover-libwow64fex/DEBIAN/
RUN cp /opt/deb/hangover-libwow64fex/DEBIAN/copyright /opt/deb/hangover-libwow64fex/usr/share/doc/hangover-libwow64fex/; \
Expand Down

0 comments on commit ec10b52

Please sign in to comment.