Code sign binaries after stripping wrt #318

This commit is contained in:
Julian Ospald 2022-03-02 18:07:40 +01:00
parent 7e359d7b3c
commit 70b91bc371
Signed by: hasufell
GPG Key ID: 3786C5262ECB4A3F

View File

@ -36,7 +36,9 @@ mkdir out
binary=$(ecabal new-exec -w ghc-${GHC_VERSION} --verbose=0 --offline sh -- -c 'command -v ghcup')
ver=$("${binary}" --numeric-version)
if [ "${OS}" = "DARWIN" ] ; then
# due to some code signing issues on M1s, we just skip stripping altogether
strip "${binary}"
# https://gitlab.haskell.org/haskell/ghcup-hs/-/issues/318
codesign -s - -o linker-signed -i ghcup -v "${binary}"
:
else
strip -s "${binary}"