From 299e0961a76430de6a7b57795f4b97f3f7313e37 Mon Sep 17 00:00:00 2001 From: Brendan Hansen Date: Thu, 7 Dec 2023 19:59:13 -0600 Subject: [PATCH] fixed build.sh --- build.sh | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) 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/ } -- 2.25.1