From b0d5c9ab682f6e1848ef3d4b8d58760e6349ae24 Mon Sep 17 00:00:00 2001 From: Matthias Gliwka Date: Thu, 6 May 2021 12:03:43 +0200 Subject: [PATCH] Override javacpp platform with env var --- build.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/build.sh b/build.sh index dbcc441..92c2ddc 100755 --- a/build.sh +++ b/build.sh @@ -114,7 +114,7 @@ cd ../.. # only deploy with deploy command line param on master with clean working area if [ $# -gt 0 ] && [ $1 = "deploy" ] && [ "$(git symbolic-ref HEAD)" = "refs/heads/main" ] && [ -z "$(git status --porcelain)" ] then - mvn -B --settings mvnsettings.xml deploy + mvn -B -Dorg.bytedeco.javacpp.platform=$DETECTED_PLATFORM --settings mvnsettings.xml deploy else - mvn -B install + mvn -B -Dorg.bytedeco.javacpp.platform=$DETECTED_PLATFORM install fi \ No newline at end of file