mirror of
https://github.com/JDM170/ReVanced_Builder
synced 2025-11-29 14:41:46 +07:00
Create ReVanced_Patches.ps1
This commit is contained in:
18
Scripts/ReVanced_Patches.ps1
Normal file
18
Scripts/ReVanced_Patches.ps1
Normal file
@@ -0,0 +1,18 @@
|
||||
|
||||
# https://github.com/revanced/revanced-patches
|
||||
$Parameters = @{
|
||||
Uri = "https://api.github.com/repos/revanced/revanced-patches/releases/latest"
|
||||
UseBasicParsing = $true
|
||||
Verbose = $true
|
||||
}
|
||||
$Patchesvtag = (Invoke-RestMethod @Parameters).tag_name
|
||||
$Patchestag = $Patchesvtag.replace("v", "")
|
||||
$Parameters = @{
|
||||
Uri = "https://github.com/revanced/revanced-patches/releases/download/$Patchesvtag/revanced-patches-$Patchestag.jar"
|
||||
Outfile = "$PSScriptRoot\revanced-patches.jar"
|
||||
UseBasicParsing = $true
|
||||
Verbose = $true
|
||||
}
|
||||
Invoke-RestMethod @Parameters
|
||||
|
||||
echo "Patchesvtag=$Patchesvtag" >> $env:GITHUB_ENV
|
||||
Reference in New Issue
Block a user