Skip to content

Commit

Permalink
chore: add get-java script
Browse files Browse the repository at this point in the history
  • Loading branch information
targos committed Jul 19, 2024
1 parent b8857d5 commit e23ca05
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/build.js
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ function compile(mode) {
let min = mode === 'min';
let PATH = process.env.PATH;
if (config.jdk) {
PATH = `${path.join(config.jdk, 'bin')};${PATH}`;
PATH = `${path.resolve(config.jdk, 'bin')};${PATH}`;
}
for (let i = 0; i < modules.length; i++) {
log(`Compiling module ${modules[i].name}`);
Expand Down
6 changes: 6 additions & 0 deletions scripts/get-java.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#/bin/bash

wget -q https://github.com/adoptium/temurin21-binaries/releases/download/jdk-21.0.4%2B7/OpenJDK21U-jdk_x64_linux_hotspot_21.0.4_7.tar.gz -O jdk.tar.gz
tar xf jdk.tar.gz
mv jdk-21* jdk
echo '{"gwt": "./gwt", "jdk": "./jdk"}' > config.json

0 comments on commit e23ca05

Please sign in to comment.