From 5c7d8129ad3af8b99902dd656a0ffef3be1141d5 Mon Sep 17 00:00:00 2001 From: Vidar Holen Date: Mon, 18 Nov 2019 17:12:25 -0800 Subject: [PATCH] Try to search for binary on macOS/Cabal3 --- .compile_binaries | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.compile_binaries b/.compile_binaries index 44ddc58..4ec71de 100755 --- a/.compile_binaries +++ b/.compile_binaries @@ -66,9 +66,14 @@ build_osx() { cabal update cabal install --dependencies-only cabal build shellcheck + + # Cabal 3 no longer has a predictable output path + path="$(find . -name 'shellcheck' -type f -perm +111)" + [[ -e "$path" ]] + for tag in $TAGS do - cp "dist/build/shellcheck/shellcheck" "deploy/shellcheck-$tag.darwin-x86_64"; + cp "$path" "deploy/shellcheck-$tag.darwin-x86_64"; done }