mirror of
https://github.com/JDM170/ReVanced_Builder
synced 2025-11-29 14:41:46 +07:00
Update Zulu_JDK.ps1
This commit is contained in:
@@ -8,10 +8,22 @@ $URL = (Invoke-RestMethod @Parameters).architecture."64bit".url
|
||||
$ZuluTag = (Invoke-RestMethod @Parameters).version
|
||||
$Parameters = @{
|
||||
Uri = $URL
|
||||
Outfile = "$PSScriptRoot\jdk_windows-x64_bin.zip"
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user