mirror of
https://github.com/JDM170/ReVanced_Builder
synced 2025-11-29 14:41:46 +07:00
30 lines
942 B
PowerShell
30 lines
942 B
PowerShell
# https://github.com/ScoopInstaller/Java/blob/master/bucket/zulu-jdk.json
|
|
$Parameters = @{
|
|
Uri = "https://raw.githubusercontent.com/ScoopInstaller/Java/master/bucket/zulu-jdk.json"
|
|
UseBasicParsing = $true
|
|
Verbose = $true
|
|
}
|
|
$URL = (Invoke-RestMethod @Parameters).architecture."64bit".url
|
|
$ZuluTag = (Invoke-RestMethod @Parameters).version
|
|
$Parameters = @{
|
|
Uri = $URL
|
|
Outfile = "Temp\jdk_windows-x64_bin.zip"
|
|
UseBasicParsing = $true
|
|
Verbose = $true
|
|
}
|
|
Invoke-RestMethod @Parameters
|
|
|
|
echo "ZuluTag=$ZuluTag" >> $env:GITHUB_ENV
|
|
|
|
Write-Verbose -Message Expanding Zulu JDK -Verbose
|
|
|
|
$Parameters = @{
|
|
Path = "Temp\jdk_windows-x64_bin.zip"
|
|
DestinationPath = "Temp\jdk_windows-x64_bin"
|
|
Force = $true
|
|
Verbose = $true
|
|
}
|
|
Expand-Archive @Parameters
|
|
|
|
Remove-Item -Path "Temp\jdk_windows-x64_bin.zip" -Force
|