Skip to content

Commit

Permalink
make build script more robust [ci skip]
Browse files Browse the repository at this point in the history
  • Loading branch information
infeo committed Nov 5, 2024
1 parent 480b1a9 commit 506b4ad
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -36,16 +36,16 @@ if [ $? -ne 0 ] || [ ! -d ./target/runtime ]; then
exit 1
fi

NATIVE_ACCESS_PACKAGE="org.example"
NATIVE_ACCESS_PACKAGE="no.native.access.needed"
_OS=$(uname -s)
if [ ! -z $(echo "$_OS" | grep Linux*) ]; then
if (echo "$_OS" | grep -q "Linux.*") ; then
_ARCH=$(uname -m)
if [ "$_ARCH" = "x86_64" ]; then
NATIVE_ACCESS_PACKAGE="org.cryptomator.jfuse.linux.amd64"
elif [ "$_ARCH" = "aarch64" ]; then
NATIVE_ACCESS_PACKAGE="org.cryptomator.jfuse.linux.aarch64"
fi
elif [ ! -z $(echo "$_OS" | grep Darwin*) ]; then
elif (echo "$_OS" | grep -q "Darwin.*"); then
NATIVE_ACCESS_PACKAGE="org.cryptomator.jfuse.darwin"
fi

Expand Down

0 comments on commit 506b4ad

Please sign in to comment.