From fc71e1a4c192d63e7113170edd87ff70bfbf7b97 Mon Sep 17 00:00:00 2001 From: Arie Gurfinkel Date: Fri, 6 Dec 2024 18:33:16 -0500 Subject: [PATCH] fix: sign all executables --- scripts/package.sh | 88 +++++++++++++++++++++++++++++++++++++--------- 1 file changed, 71 insertions(+), 17 deletions(-) diff --git a/scripts/package.sh b/scripts/package.sh index d5a2be5..2c259fb 100755 --- a/scripts/package.sh +++ b/scripts/package.sh @@ -86,24 +86,78 @@ if [[ "${HOST_TRIPLE}" != "x86_64-pc-windows-msvc" ]] ; then fi # Sign macOS binaries - Disabled -# if [[ $HOST_TRIPLE == *apple-darwin* ]] && [[ ! -z "$APPLE_CODESIGN_IDENTITY" ]]; then -# LLVM_BIN="./deploy/llvm/bin" -# RUST_BIN="./deploy/rust/bin" -# RUST_LIB="./deploy/rust/lib" -# RUST_LIB_BIN="$RUST_LIB/rustlib/aarch64-apple-darwin/bin" +if [[ $HOST_TRIPLE == *apple-darwin* ]] && [[ ! -z "$APPLE_CODESIGN_IDENTITY" ]]; then + LLVM_BIN="./deploy/llvm/bin" + while IFS= read -r f + do + bin_file="${LLVM_BIN}${f}${EXE_SUFFIX}" + if [[ -f "$bin_file" ]] ; then + ../scripts/sign.sh "$bin_file" + fi + done < <(cat <