FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
cli/build_linux.sh at develop · cryptomator/cli · GitHub
Uh oh!
There was an error while loading.
Please reload this page
.
cryptomator
/
cli
Public
Uh oh!
There was an error while loading.
Please reload this page
.
Notifications
You must be signed in to change notification settings
Fork
52
Star
427
Code
Issues
18
Pull requests
1
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
cli
/
build_linux.sh
Copy path
More file actions
More file actions
Latest commit
History
History
History
67 lines (54 loc) · 1.9 KB
Breadcrumbs
cli
/
build_linux.sh
Copy path
File metadata and controls
67 lines (54 loc) · 1.9 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
#!
/bin/bash
set
-euxo pipefail
echo
"
Building cryptomator cli...
"
export
APP_VERSION=
'
0.1.0-local
'
#
Check if JAVA_HOME is set
if
[
-z
"
$JAVA_HOME
"
]
;
then
echo
"
Environment variable JAVA_HOME not defined
"
exit
1
fi
#
Check Java version
MIN_JAVA_VERSION=
$(
./mvnw help:evaluate
"
-Dexpression=jdk.version
"
-q -DforceStdout
)
JAVA_VERSION=
$(
"
$JAVA_HOME
/bin/java
"
-version
|
head -n1
|
cut -d
'
'
-f2
|
cut -d
'
.
'
-f1
)
if
[
"
$JAVA_VERSION
"
-lt
"
$MIN_JAVA_VERSION
"
]
;
then
echo
"
Java version
$JAVA_VERSION
is too old. Minimum required version is
$MIN_JAVA_VERSION
"
exit
1
fi
echo
"
Building java app with maven...
"
./mvnw -B clean package
cp ./LICENSE.txt ./target/
mv ./target/cryptomator-cli-
*
.jar ./target/mods
echo
"
Creating JRE with jlink...
"
envsubst
<
dist/jlink.args
>
target/jlink.args
"
$JAVA_HOME
/bin/jlink
"
'
@./target/jlink.args
'
if
[
$?
-ne
0 ]
||
[
!
-d
./target/runtime ]
;
then
echo
"
JRE creation with jlink failed.
"
exit
1
fi
export
NATIVE_ACCESS_PACKAGE=
"
no.native.access.available
"
_OS=
$(
uname -s
)
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
"
else
echo
"
Warning: Unsupported Linux architecture for FUSE mounter:
$_ARCH
"
echo
"
FUSE supported architectures: x86_64, aarch64
"
fi
fi
export
JP_APP_VERSION=
'
99.9.9
'
envsubst
<
dist/jpackage.args
>
target/jpackage.args
echo
"
Creating app binary with jpackage...
"
"
$JAVA_HOME
/bin/jpackage
"
'
@./target/jpackage.args
'
if
[
$?
-ne
0 ]
||
[
!
-d
./target/cryptomator-cli ]
;
then
echo
"
Binary creation with jpackage failed.
"
exit
1
fi
echo
"
Running integration tests against the app image...
"
./mvnw -B verify -DskipITs=false
if
[
$?
-ne
0 ]
;
then
echo
"
Integration tests failed.
"
exit
1
fi
Back
|
FazBrowse Home
|
New Git URL