Skip to content

Commit

Permalink
added script for native build
Browse files Browse the repository at this point in the history
  • Loading branch information
nkiesel committed Oct 19, 2023
1 parent c14a10f commit 6f08767
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions native_build
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 6f08767

Please sign in to comment.