From b5bd86ef176072480fdf29eff64a317f6911f95e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adri=C3=A1n=20Gonz=C3=A1lez=20Sieira?= Date: Wed, 30 Aug 2017 13:01:50 +0200 Subject: [PATCH] wrong instruction to copy libraries in OSX, close #11 [ci skip] --- copy-resources.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/copy-resources.sh b/copy-resources.sh index 4249549..36a0188 100644 --- a/copy-resources.sh +++ b/copy-resources.sh @@ -1,3 +1,7 @@ #!/usr/bin/env bash echo "Copy resources to target/lib..." -cp joctomap-natives/lib/*.so* target/lib \ No newline at end of file +if [[ "$OSTYPE" == "linux-gnu" ]]; then + cp joctomap-natives/lib/*.so* target/lib +elif [[ "$OSTYPE" == "darwin"* ]]; then + cp joctomap-natives/lib/*.dylib* target/lib +fi