Avoid stripping darwin.aarch64 binaries to keep code signature

This commit is contained in:
Vidar Holen 2024-02-19 11:40:30 -08:00
parent 8c4c112c25
commit 55be4543f2
1 changed files with 3 additions and 1 deletions

View File

@ -8,7 +8,9 @@ set -xe
( IFS=';'; cabal build $CABALOPTS ) ( IFS=';'; cabal build $CABALOPTS )
find . -name shellcheck -type f -exec mv {} "$TARGETNAME/" \; find . -name shellcheck -type f -exec mv {} "$TARGETNAME/" \;
ls -l "$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" ls -l "$TARGETNAME"
file "$TARGETNAME/shellcheck" | grep "Mach-O 64-bit arm64 executable" file "$TARGETNAME/shellcheck" | grep "Mach-O 64-bit arm64 executable"
} >&2 } >&2