This commit is contained in:
SrGooglo 2024-01-27 16:38:28 +01:00
parent eb1010573f
commit 8d3abe1b67
1 changed files with 17 additions and 2 deletions

View File

@ -23,6 +23,12 @@ const defaultConfig = {
assigned_memory: 4096,
}
const JAVA_JRE_REMOTES = {
"win32": "https://download.java.net/java/GA/jdk21.0.2/f2283984656d49d69e91c558476027ac/13/GPL/openjdk-21.0.2_windows-x64_bin.zip",
"darwin": "https://download.java.net/java/GA/jdk21.0.2/f2283984656d49d69e91c558476027ac/13/GPL/openjdk-21.0.2_macos-x64_bin.tar.gz",
"linux": "https://download.java.net/java/GA/jdk21.0.2/f2283984656d49d69e91c558476027ac/13/GPL/openjdk-21.0.2_linux-x64_bin.tar.gz"
}
module.exports = {
...vars,
rsb_minimun_version: "0.9.3",
@ -67,8 +73,17 @@ module.exports = {
}
]
},
after_install: async () => {
init: async ({os_string, install_path}) => {
return {
install_steps: {
http_downloads: [
{
url: JAVA_JRE_REMOTES[os_string],
extract: `${install_path}/jdk`,
}
]
}
}
},
executable: true,
check_updates_after_execute: true,