Add darwin code signing wrt #322 and #318

This commit is contained in:
2022-03-02 13:53:45 +01:00
parent d67dafaf1b
commit 8cc333d8d5
3 changed files with 25 additions and 0 deletions

View File

@@ -296,6 +296,18 @@ download_ghcup() {
esac
EOF
case "${plat}" in
"Darwin"|"darwin")
case "${arch}" in
aarch64|arm64|armv8l)
codesign -s - "${GHCUP_BIN}"/ghcup
;;
*) : ;;
esac
;;
*) : ;;
esac
# shellcheck disable=SC1090
edo . "${GHCUP_DIR}"/env
eghcup upgrade