From 55be4543f225824e1f6534973ad51c7833343e4e Mon Sep 17 00:00:00 2001 From: Vidar Holen Date: Mon, 19 Feb 2024 11:40:30 -0800 Subject: [PATCH] Avoid stripping darwin.aarch64 binaries to keep code signature --- build/darwin.aarch64/build | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/build/darwin.aarch64/build b/build/darwin.aarch64/build index c15717a67..4235d3ae1 100755 --- a/build/darwin.aarch64/build +++ b/build/darwin.aarch64/build @@ -8,7 +8,9 @@ set -xe ( IFS=';'; cabal build $CABALOPTS ) find . -name shellcheck -type f -exec mv {} "$TARGETNAME/" \; ls -l "$TARGETNAME" - "$TARGET-strip" "$TARGETNAME/shellcheck" + # Stripping invalidates the code signature and the build image does + # not appear to have anything similar to the 'codesign' tool. + # "$TARGET-strip" "$TARGETNAME/shellcheck" ls -l "$TARGETNAME" file "$TARGETNAME/shellcheck" | grep "Mach-O 64-bit arm64 executable" } >&2