From: Brendan Hansen Date: Fri, 8 Dec 2023 01:59:13 +0000 (-0600) Subject: fixed build.sh X-Git-Url: https://git.brendanfh.com/?a=commitdiff_plain;h=299e0961a76430de6a7b57795f4b97f3f7313e37;p=onyx.git fixed build.sh --- diff --git a/build.sh b/build.sh index 5abcb168..6a5f6d39 100755 --- a/build.sh +++ b/build.sh @@ -79,7 +79,13 @@ compress_all() { codesign -s - "$DIST_DIR/bin/onyx" && \ codesign -s - "$DIST_DIR/lib/onyx_runtime.dylib" - tar -C "$DIST_DIR" -zcvf onyx.tar.gz bin core examples include lib misc tests tools LICENSE + if [ ! -z ${ONYX_RUNTIME_LIBRARY+x} ]; then + # When including a runtime library, include the lib and include folders + tar -C "$DIST_DIR" -zcvf onyx.tar.gz bin core examples include lib misc tests tools LICENSE + else + tar -C "$DIST_DIR" -zcvf onyx.tar.gz bin core examples misc tests tools LICENSE + fi + mv onyx.tar.gz dist/ }