-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixes #18 Will require an addition to configs. Didn't want to add it to base module
- Loading branch information
1 parent
360215e
commit 29fe4fb
Showing
2 changed files
with
23 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
$ProgressPreference = 'SilentlyContinue' # Disable (slow) progress bar | ||
|
||
Set-Location C:\Tools | ||
|
||
$OPENJDK_URL="https://github.com/adoptium/temurin17-binaries/releases/download/jdk-17.0.9%2B9.1/OpenJDK17U-jdk_x64_windows_hotspot_17.0.9_9.msi" | ||
$OPENJDK_HASH="cd7b319f6fbd7efc68a0e464c55c7f2a28d6b8be3d0bcda315a16f885c57cadb" | ||
|
||
Invoke-WebRequest -Uri ${OPENJDK_URL} -OutFile OpenJDK17.msi | ||
$hash = Get-FileHash -Path OpenJDK17.msi -Algorithm SHA256 | ||
|
||
if ( ${OPENJDK_HASH} -ne $hash.Hash ) { | ||
throw("Invalid OpenJDK installer hash") | ||
} | ||
|
||
msiexec /i OpenJDK17.msi ADDLOCAL=FeatureJavaHome /quiet |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
#!/bin/bash | ||
|
||
set -eu | ||
|
||
sudo DEBIAN_FRONTEND=noninteractive apt-get install -y \ | ||
wget apt-transport-https gnupg | ||
sudo apt-get -y -q update | ||
sudo DEBIAN_FRONTEND=noninteractive apt-get install -y temurin-17-jdk |