summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVidar Holen <vidar@vidarholen.net>2024-02-19 11:40:30 -0800
committerVidar Holen <vidar@vidarholen.net>2024-02-19 11:40:30 -0800
commit55be4543f225824e1f6534973ad51c7833343e4e (patch)
tree598f33fd4ce23b9f555e2120434d4a8dc6d1f5b9
parent8c4c112c2504b630b5e58a87c8f42bbe9c955946 (diff)
Avoid stripping darwin.aarch64 binaries to keep code signature
-rwxr-xr-xbuild/darwin.aarch64/build4
1 files changed, 3 insertions, 1 deletions
diff --git a/build/darwin.aarch64/build b/build/darwin.aarch64/build
index c15717a..4235d3a 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