From 50cf6a7c508eb8a688659794ab9c2e13ae4218c3 Mon Sep 17 00:00:00 2001 From: Brendan Hansen Date: Thu, 22 Apr 2021 11:07:33 -0500 Subject: [PATCH] made build script more system independent --- build.sh | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/build.sh b/build.sh index 74a7ef8..62ffa4d 100644 --- a/build.sh +++ b/build.sh @@ -1,10 +1,12 @@ #!/bin/sh +ONYX_INSTALLATION_FOLDER="/mnt/c/dev/onyx" + # Copy relative javascript modules from Onyx source directory -cp ../onyx/bin/onyx-loader.js ./site/js/onyx-loader.js -cp ../onyx/modules/webgl2/webgl2.js ./site/js/webgl2.js -cp ../onyx/modules/js_events/js_events.js ./site/js/js_events.js +cp "$ONYX_INSTALLATION_FOLDER/bin/onyx-loader.js" ./site/js/onyx-loader.js +cp "$ONYX_INSTALLATION_FOLDER/modules/webgl2/webgl2.js" ./site/js/webgl2.js +cp "$ONYX_INSTALLATION_FOLDER/modules/js_events/js_events.js" ./site/js/js_events.js onyx -r js --use-post-mvp-features -V -o site/sand_toy.wasm \ src/build.onyx \ - -I ../onyx # Include the folder that contains the "modules" + -I "$ONYX_INSTALLATION_FOLDER" # Include the folder that contains the "modules" -- 2.25.1