mirror of
https://github.com/JDM170/ReVanced_Builder
synced 2025-11-29 14:41:46 +07:00
Update workflow scripts
Signed-off-by: Lev Rusanov <30170278+JDM170@users.noreply.github.com>
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
# https://github.com/inotia00/VancedMicroG
|
||||
# https://github.com/ReVanced/GmsCore
|
||||
$Parameters = @{
|
||||
Uri = "https://api.github.com/repos/inotia00/VancedMicroG/releases/latest"
|
||||
Uri = "https://api.github.com/repos/ReVanced/GmsCore/releases/latest"
|
||||
UseBasicParsing = $true
|
||||
Verbose = $true
|
||||
}
|
||||
|
||||
@@ -1,11 +1,10 @@
|
||||
# Get latest supported YouTube client version via ReVanced JSON
|
||||
# It will let us to download always latest YouTube apk supported by ReVanced team
|
||||
# https://github.com/revanced/revanced-patches/blob/main/patches.json
|
||||
# Get the latest supported YouTube version to patch
|
||||
# https://api.revanced.app/docs/swagger
|
||||
$Parameters = @{
|
||||
Uri = "https://raw.githubusercontent.com/revanced/revanced-patches/main/patches.json"
|
||||
Uri = "https://api.revanced.app/v2/patches/latest"
|
||||
UseBasicParsing = $true
|
||||
}
|
||||
$JSON = Invoke-RestMethod @Parameters
|
||||
$JSON = (Invoke-RestMethod @Parameters).patches
|
||||
$versions = ($JSON | Where-Object -FilterScript {$_.compatiblePackages.name -eq "com.google.android.youtube"}).compatiblePackages.versions
|
||||
$LatestSupported = $versions | Sort-Object -Descending -Unique | Select-Object -First 1
|
||||
|
||||
|
||||
Reference in New Issue
Block a user