Update ReVanced_Patches.ps1

This commit is contained in:
2023-07-17 04:20:38 +07:00
committed by GitHub
parent ad506f52ce
commit faf94e4e29

View File

@@ -4,13 +4,10 @@ $Parameters = @{
UseBasicParsing = $true UseBasicParsing = $true
Verbose = $true Verbose = $true
} }
# $Patchesvtag = (Invoke-RestMethod @Parameters).tag_name
# $Patchestag = $Patchesvtag.replace("v", "")
$apiResult = Invoke-RestMethod @Parameters $apiResult = Invoke-RestMethod @Parameters
$URL = ($apiResult.assets | Where-Object -FilterScript {$_.content_type -eq "application/java-archive"}).browser_download_url $URL = ($apiResult.assets | Where-Object -FilterScript {$_.content_type -eq "application/java-archive"}).browser_download_url
$TAG = $apiResult.tag_name $TAG = $apiResult.tag_name
$Parameters = @{ $Parameters = @{
# Uri = "https://github.com/revanced/revanced-patches/releases/download/$Patchesvtag/revanced-patches-$Patchestag.jar"
Uri = $URL Uri = $URL
Outfile = "Temp\revanced-patches.jar" Outfile = "Temp\revanced-patches.jar"
UseBasicParsing = $true UseBasicParsing = $true