Upload files

Signed-off-by: Lev Rusanov <30170278+JDM170@users.noreply.github.com>
This commit is contained in:
2025-05-18 23:18:19 +07:00
parent 583ea199f3
commit c9ca27f2b7
10 changed files with 565 additions and 0 deletions

30
Scripts/Zulu_JDK.ps1 Normal file
View File

@@ -0,0 +1,30 @@
# 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
}
$apiResult = Invoke-RestMethod @Parameters
$URL = $apiResult.architecture."64bit".url
$TAG = $apiResult.version
$Parameters = @{
Uri = $URL
Outfile = "Temp\jdk_windows-x64_bin.zip"
UseBasicParsing = $true
Verbose = $true
}
Invoke-RestMethod @Parameters
echo "ZuluTag=$TAG" >> $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