From 65fbe568ec5c05f430accabb51bfb25906c506b5 Mon Sep 17 00:00:00 2001 From: RichardG867 Date: Wed, 31 Aug 2022 18:16:31 -0300 Subject: [PATCH] Jenkins: Fix MoltenVK secondary header patching --- .ci/build.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.ci/build.sh b/.ci/build.sh index a9639c3fc..455ba3995 100644 --- a/.ci/build.sh +++ b/.ci/build.sh @@ -903,7 +903,7 @@ then # Now patch a 64-bit Mach-O header (0xFEEDFACF, little endian), either at # the beginning or as a sub-header within a fat binary as parsed above. - if [ "$(dd if="$line" bs=1 seek=$macho_offset count=8 status=none)" = "$(printf '\xCF\xFA\xED\xFE\x07\x00\x00\x01')" ] + if [ "$(dd if="$line" bs=1 skip=$macho_offset count=8 status=none)" = "$(printf '\xCF\xFA\xED\xFE\x07\x00\x00\x01')" ] then # Change CPU subtype in the Mach-O header from ALL (0x00000003) to H (0x00000008). printf '\x08\x00\x00\x00' | dd of="$line" bs=1 seek=$((macho_offset + 8)) count=4 conv=notrunc status=none