Skip to content

Commit 4387c9e

Browse files
committed
export vars to environment in order to be used be envsubst
1 parent 206a572 commit 4387c9e

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

build_linux.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ set -euxo pipefail
33

44
echo "Building cryptomator cli..."
55

6-
APP_VERSION='0.1.0-local'
6+
export APP_VERSION='0.1.0-local'
77

88
# Check if Maven is installed
99
if ! command -v mvn &> /dev/null; then
@@ -39,7 +39,7 @@ if [ $? -ne 0 ] || [ ! -d ./target/runtime ]; then
3939
exit 1
4040
fi
4141

42-
NATIVE_ACCESS_PACKAGE="no.native.access.available"
42+
export NATIVE_ACCESS_PACKAGE="no.native.access.available"
4343
_OS=$(uname -s)
4444
if (echo "$_OS" | grep -q "Linux.*") ; then
4545
_ARCH=$(uname -m)
@@ -53,7 +53,7 @@ if (echo "$_OS" | grep -q "Linux.*") ; then
5353
fi
5454
fi
5555

56-
JP_APP_VERSION='99.9.9'
56+
export JP_APP_VERSION='99.9.9'
5757
envsubst < dist/jpackage.args > target/jpackage.args
5858

5959
echo "Creating app binary with jpackage..."

build_mac.sh

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
echo "Building cryptomator cli..."
44

5-
APP_VERSION='0.1.0-local'
5+
export APP_VERSION='0.1.0-local'
66

77
# Check if Maven is installed
88
if ! command -v mvn &> /dev/null; then
@@ -38,7 +38,8 @@ if [ $? -ne 0 ] || [ ! -d ./target/runtime ]; then
3838
exit 1
3939
fi
4040

41-
JP_APP_VERSION='99.9.9'
41+
export JP_APP_VERSION='99.9.9'
42+
export NATIVE_ACCESS_PACKAGE="org.cryptomator.jfuse.mac"
4243
envsubst < dist/jpackage.args > target/jpackage.args
4344

4445
echo "Creating app binary with jpackage..."

0 commit comments

Comments
 (0)