fixed build.sh
authorBrendan Hansen <brendan.f.hansen@gmail.com>
Fri, 8 Dec 2023 01:59:13 +0000 (19:59 -0600)
committerBrendan Hansen <brendan.f.hansen@gmail.com>
Fri, 8 Dec 2023 01:59:13 +0000 (19:59 -0600)
build.sh

index 5abcb16856edf2e646d0d9580afd31f6272587b4..6a5f6d39b88a8e4ed85e74969871a36ebb957878 100755 (executable)
--- 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/
 }