From 8305d778019175e79b960098e4b73ad2579cc1a8 Mon Sep 17 00:00:00 2001 From: Brendan Hansen Date: Wed, 22 Nov 2023 13:29:34 -0600 Subject: [PATCH] fixed: distribution of `darwin-amd64` --- build.sh | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/build.sh b/build.sh index 29cc7b6c..0342ee01 100755 --- a/build.sh +++ b/build.sh @@ -42,7 +42,14 @@ package_all() { mkdir -p "$DIST_DIR/lib" mkdir -p "$DIST_DIR/include" - [ -f runtime/onyx_runtime.so ] && cp runtime/onyx_runtime.so "$DIST_DIR/lib/" + case "$(uname)" in + Linux) suffix='so' ;; + *BSD) suffix='so' ;; + Darwin) suffix='dylib' ;; + *) suffix='dll' ;; + esac + + [ -f runtime/onyx_runtime.$suffix ] && cp runtime/onyx_runtime.$suffix "$DIST_DIR/lib/" cp "shared/include/onyx_library.h" "$DIST_DIR/include/onyx_library.h" cp "shared/include/wasm.h" "$DIST_DIR/include/wasm.h" -- 2.25.1