From 9582db60f7e494de34cd08ee13b4cb0106b2344b Mon Sep 17 00:00:00 2001 From: Brendan Hansen Date: Thu, 7 Dec 2023 20:03:44 -0600 Subject: [PATCH] fix build on darwin --- build.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/build.sh b/build.sh index 6a5f6d39..725aa2dc 100755 --- a/build.sh +++ b/build.sh @@ -77,7 +77,7 @@ compress_all() { # Sign the binaries on MacOS [ "$(uname)" = 'Darwin' ] && \ codesign -s - "$DIST_DIR/bin/onyx" && \ - codesign -s - "$DIST_DIR/lib/onyx_runtime.dylib" + [ -f "$DIST_DIR/lib/onyx_runtime.dylib" ] && codesign -s - "$DIST_DIR/lib/onyx_runtime.dylib" if [ ! -z ${ONYX_RUNTIME_LIBRARY+x} ]; then # When including a runtime library, include the lib and include folders @@ -101,7 +101,7 @@ install_all() { # Sign the binaries on MacOS [ "$(uname)" = 'Darwin' ] && \ codesign -s - "$ONYX_INSTALL_DIR/bin/onyx" && \ - codesign -s - "$ONYX_INSTALL_DIR/lib/onyx_runtime.dylib" + [ -f "$DIST_DIR/lib/onyx_runtime.dylib" ] && codesign -s - "$DIST_DIR/lib/onyx_runtime.dylib" } for arg in $@; do -- 2.25.1