Skip to content

Commit d56c632

Browse files
committed
Release 2.4.0
1 parent bcde0db commit d56c632

File tree

382 files changed

+37549
-25893
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

382 files changed

+37549
-25893
lines changed

.gitignore

+5
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,10 @@ frontend/**/.idea
3535
frontend/libs
3636
frontend/src/css/images
3737
frontend/oraclejetconfig.json
38+
frontend/electron-test/NewWDTModelFile.yml
39+
frontend/electron-test/electronTest.log
40+
frontend/electron-test/node_modules/
41+
frontend/electron-test/package-lock.json
3842
.vscode/*
3943
client.log.*
4044
/bin/
@@ -50,3 +54,4 @@ electron/node_modules/**
5054

5155
hugo/*/docs/
5256
hugo/*/.vscode/
57+
hugo/*/.hugo_build.lock

THIRD_PARTY_LICENSES.txt

+403-150
Large diffs are not rendered by default.

assembly/pom.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
<parent>
1010
<artifactId>console-backend</artifactId>
1111
<groupId>com.oracle.weblogic</groupId>
12-
<version>2.3.0</version>
12+
<version>2.4.0</version>
1313
</parent>
1414

1515
<packaging>pom</packaging>

build-electron.sh

+22-61
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ umask 000
1919
cp -rp /build.in/. /build
2020
cd /build
2121
export ALREADY_IN_DOCKER=true
22-
./build-electron.sh
22+
./build-electron.sh $*
2323
rm -rf /build.in/electron/dist
2424
cp -rp electron/dist /build.in/electron
2525
!
@@ -32,59 +32,6 @@ cp -rp electron/dist /build.in/electron
3232
--entrypoint=/tmp/script \
3333
${ELECTRON_BUILDER_IMAGE:-electronuserland/builder:12}
3434
}
35-
get_java() {
36-
case "$(java --version 2>/dev/null)" in
37-
*OpenJDK*11*)
38-
return
39-
esac
40-
echo Downloading and installing OpenJDK >&2
41-
mkdir -p $tmp/java
42-
(
43-
cd $tmp/java
44-
case "$os" in
45-
linux)
46-
curl -O ${DOWNLOAD_JAVA_URL:-https://download.java.net/java/GA/jdk11/9/GPL/openjdk-11.0.2_linux-x64_bin.tar.gz}
47-
tar xof *
48-
echo "$PWD"/*/bin
49-
;;
50-
darwin)
51-
curl -O ${DOWNLOAD_JAVA_URL:-https://download.java.net/java/GA/jdk11/9/GPL/openjdk-11.0.2_osx-x64_bin.tar.gz}
52-
tar xof *
53-
echo "$PWD"/*/Contents/Home/bin
54-
;;
55-
windows)
56-
web -i get "${DOWNLOAD_JAVA_URL:-https://download.java.net/java/GA/jdk11/9/GPL/openjdk-11.0.2_windows-x64_bin.zip}" > openjdk.zip
57-
unzip -q *
58-
echo "$PWD"/*/bin
59-
esac
60-
)
61-
}
62-
63-
get_node() {
64-
case "$(node --version 2>/dev/null)" in
65-
*14.*)
66-
return
67-
esac
68-
echo Downloading and installing NodeJS >&2
69-
mkdir -p $tmp/node
70-
(
71-
cd $tmp/node
72-
case "$os" in
73-
linux|darwin)
74-
# Get it internally now for speed and reliability
75-
curl -O ${DOWNLOAD_NODE_URL:-https://nodejs.org/dist/v14.16.0/node-v14.16.0-$os-x64.tar.gz}
76-
tar xof *
77-
echo "$PWD"/*/bin
78-
;;
79-
windows)
80-
# Get it internally now for speed and reliability
81-
web -i get "${DOWNLOAD_NODE_URL:-https://nodejs.org/dist/v14.16.0/node-v14.16.0-win-x64.zip}" > node.zip
82-
unzip -q *.zip
83-
rm -f *.zip
84-
echo "$PWD"/*
85-
esac
86-
)
87-
}
8835

8936
# If we're running inside docker, copy the output out at the end
9037
copyout() {
@@ -127,21 +74,23 @@ then
12774
case "$os" in
12875
linux)
12976
rm -rf electron/dist electron/extraFiles
130-
doit_docker
77+
doit_docker "$@"
13178
exit 0
13279
esac
13380
fi
13481

135-
NEW_JAVA_BIN="$(get_java)"
82+
# Legally, the thing we ship must be openjdk
83+
NEW_JAVA_BIN="$(run/get_java --openjdk)"
13684
if [ -n "$NEW_JAVA_BIN" ]
13785
then
13886
PATH="$NEW_JAVA_BIN$pathsep$PATH"
13987
fi
14088

141-
NEW_NODE="$(get_node)"
142-
if [ -n "$NEW_NODE" ]
89+
# For some reason, electron build is failing with 16. Just use 14 for now.
90+
NEW_NPM="$(run/get_npm.14)"
91+
if [ -n "$NEW_NPM" ]
14392
then
144-
PATH="$NEW_NODE$pathsep$PATH"
93+
PATH="$NEW_NPM$pathsep$PATH"
14594
fi
14695

14796
$NPM_PREP_COMMANDS
@@ -172,17 +121,29 @@ mkdir -p "$extra"/backend
172121
cp -rp ../runnable/* "$extra"/backend
173122
cp -p package.json "$extra"
174123

175-
npm run dist
124+
npm run dist "$@"
125+
126+
case "$os" in
127+
darwin)
128+
# Create a second copy of the executable for use by WKT UI, so that Mac OS thinks
129+
# that they are two separate programs and let's you run them.
130+
cd dist/mac
131+
cp -p "WebLogic Remote Console.app/Contents/MacOS/WebLogic Remote Console" "WebLogic Remote Console.app/Contents/MacOS/Embeddable Remote Console"
132+
zip ../*.zip "WebLogic Remote Console.app/Contents/MacOS/Embeddable Remote Console"
133+
cd ../..
134+
esac
176135

177136
if set | grep -q CODESIGNBUREAU
178137
then
179138
case "$os" in
180139
darwin)
181140
./signMac dist/mac/"WebLogic Remote Console.app" signed/mac/"WebLogic Remote Console.app"
182-
"$(npm bin)/electron-builder" -p never --mac dmg --pd="signed/mac/WebLogic Remote Console.app"
141+
# Regenerate using the signed version
142+
"$(npm bin)/electron-builder" -p never --pd="signed/mac/WebLogic Remote Console.app"
183143
;;
184144
windows)
185145
rm -rf "$tmp"/*
146+
mkdir -p "$tmp"
186147
mv dist/*.exe "$tmp"
187148
java -jar CSS-Client.jar sign -user weblogic_remote_console_grp -global_uid lfeigen -signed_location "dist" -sign_method microsoft -file_to_sign "$tmp"/*.exe
188149
chmod +x dist/*.exe

build-tools/pom.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
<groupId>com.oracle.weblogic.console-backend</groupId>
88
<artifactId>build-tools</artifactId>
9-
<version>2.3.0</version>
9+
<version>2.4.0</version>
1010
<name>Build Tools</name>
1111

1212
<properties>

console-rest-ext/src/WEB-INF/classes/META-INF/services/weblogic.management.rest.lib.utils.ResourceInitializer

-1
This file was deleted.

0 commit comments

Comments
 (0)