mirror of
https://github.com/JDM170/ReVanced_Builder
synced 2025-11-29 14:41:46 +07:00
Update
Signed-off-by: Lev Rusanov <30170278+JDM170@users.noreply.github.com>
This commit is contained in:
@@ -86,10 +86,9 @@ $Parameters = @{
|
|||||||
UseBasicParsing = $true
|
UseBasicParsing = $true
|
||||||
Verbose = $true
|
Verbose = $true
|
||||||
}
|
}
|
||||||
$Tag = (Invoke-RestMethod @Parameters).tag_name
|
$URL = ((Invoke-RestMethod @Parameters).assets | Where-Object -FilterScript {$_.content_type -eq "application/java-archive"}).browser_download_url
|
||||||
$Tag2 = $Tag.replace("v", "")
|
|
||||||
$Parameters = @{
|
$Parameters = @{
|
||||||
Uri = "https://github.com/revanced/revanced-patches/releases/download/$Tag/revanced-patches-$Tag2.jar"
|
Uri = $URL
|
||||||
Outfile = "$WorkingFolder\ReVanced\revanced-patches.jar"
|
Outfile = "$WorkingFolder\ReVanced\revanced-patches.jar"
|
||||||
UseBasicParsing = $true
|
UseBasicParsing = $true
|
||||||
Verbose = $true
|
Verbose = $true
|
||||||
|
|||||||
@@ -4,14 +4,18 @@ $Parameters = @{
|
|||||||
UseBasicParsing = $true
|
UseBasicParsing = $true
|
||||||
Verbose = $true
|
Verbose = $true
|
||||||
}
|
}
|
||||||
$Patchesvtag = (Invoke-RestMethod @Parameters).tag_name
|
# $Patchesvtag = (Invoke-RestMethod @Parameters).tag_name
|
||||||
$Patchestag = $Patchesvtag.replace("v", "")
|
# $Patchestag = $Patchesvtag.replace("v", "")
|
||||||
|
$apiResult = Invoke-RestMethod @Parameters
|
||||||
|
$URL = ($apiResult.assets | Where-Object -FilterScript {$_.content_type -eq "application/java-archive"}).browser_download_url
|
||||||
|
$TAG = $apiResult.tag_name
|
||||||
$Parameters = @{
|
$Parameters = @{
|
||||||
Uri = "https://github.com/revanced/revanced-patches/releases/download/$Patchesvtag/revanced-patches-$Patchestag.jar"
|
# Uri = "https://github.com/revanced/revanced-patches/releases/download/$Patchesvtag/revanced-patches-$Patchestag.jar"
|
||||||
|
Uri = $URL
|
||||||
Outfile = "Temp\revanced-patches.jar"
|
Outfile = "Temp\revanced-patches.jar"
|
||||||
UseBasicParsing = $true
|
UseBasicParsing = $true
|
||||||
Verbose = $true
|
Verbose = $true
|
||||||
}
|
}
|
||||||
Invoke-RestMethod @Parameters
|
Invoke-RestMethod @Parameters
|
||||||
|
|
||||||
echo "Patchesvtag=$Patchesvtag" >> $env:GITHUB_ENV
|
echo "Patchesvtag=$TAG" >> $env:GITHUB_ENV
|
||||||
|
|||||||
Reference in New Issue
Block a user