mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-02-08 22:14:59 +00:00
Package the JDK into jdk.app on macOS (#48765)
This commit packages the bundled JDK into jdk.app on macOS to assist with notarization there.
This commit is contained in:
parent
6da97350c8
commit
b1c5025498
@ -61,8 +61,14 @@ CopySpec archiveFiles(CopySpec modulesFiles, String distributionType, String pla
|
|||||||
with binFiles(distributionType, oss, jdk)
|
with binFiles(distributionType, oss, jdk)
|
||||||
}
|
}
|
||||||
if (jdk) {
|
if (jdk) {
|
||||||
into('jdk') {
|
if ("darwin".equals(platform)) {
|
||||||
with jdkFiles(project, platform)
|
into('jdk.app') {
|
||||||
|
with jdkFiles(project, platform)
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
into('jdk') {
|
||||||
|
with jdkFiles(project, platform)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
into('') {
|
into('') {
|
||||||
|
@ -41,8 +41,8 @@ if [ ! -z "$JAVA_HOME" ]; then
|
|||||||
JAVA_TYPE="JAVA_HOME"
|
JAVA_TYPE="JAVA_HOME"
|
||||||
else
|
else
|
||||||
if [ "$(uname -s)" = "Darwin" ]; then
|
if [ "$(uname -s)" = "Darwin" ]; then
|
||||||
# OSX has a different structure
|
# macOS has a different structure
|
||||||
JAVA="$ES_HOME/jdk/Contents/Home/bin/java"
|
JAVA="$ES_HOME/jdk.app/Contents/Home/bin/java"
|
||||||
else
|
else
|
||||||
JAVA="$ES_HOME/jdk/bin/java"
|
JAVA="$ES_HOME/jdk/bin/java"
|
||||||
fi
|
fi
|
||||||
|
Loading…
x
Reference in New Issue
Block a user