From: Brendan Hansen Date: Fri, 8 Dec 2023 02:03:44 +0000 (-0600) Subject: fix build on darwin X-Git-Url: https://git.brendanfh.com/?a=commitdiff_plain;h=9582db60f7e494de34cd08ee13b4cb0106b2344b;p=onyx.git fix build on darwin --- 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