From 6f087675d9ca07376fc5a6510a58fba46c13ecb1 Mon Sep 17 00:00:00 2001 From: Norbert Kiesel Date: Wed, 18 Oct 2023 17:19:27 -0700 Subject: [PATCH] added script for native build --- native_build | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100755 native_build diff --git a/native_build b/native_build new file mode 100755 index 0000000..904e49e --- /dev/null +++ b/native_build @@ -0,0 +1,17 @@ +#!/bin/zsh + +if [[ -z $GRAALVM_HOME ]]; then + echo "Download GraalVM and set GRAALVM_HOME to point to its Home directory" + exit 1 +fi + +list=(build/libs/CertificateHelper-*-uber.jar) +jar=${list[-1]} + +if [[ -z $jar ]]; then + echo 'First build the JAR file using `./gradlew uber`' + exit 1 +fi + + +$GRAALVM_HOME/bin/native-image -H:IncludeResources='com/sun/jna/darwin-aarch64/libjnidispatch.jnilib' -jar $jar ch