Skip to content

Commit

Permalink
Avoid stripping darwin.aarch64 binaries to keep code signature
Browse files Browse the repository at this point in the history
  • Loading branch information
koalaman committed Feb 19, 2024
1 parent 8c4c112 commit 55be454
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion build/darwin.aarch64/build
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 55be454

Please sign in to comment.