From 096c05b8cf04f172bdc49ea27589fcb5b12592c3 Mon Sep 17 00:00:00 2001 From: Lev Rusanov <30170278+JDM170@users.noreply.github.com> Date: Sun, 31 Mar 2024 12:42:43 +0700 Subject: [PATCH] Update workflow scripts Signed-off-by: Lev Rusanov <30170278+JDM170@users.noreply.github.com> --- Scripts/MicroG.ps1 | 4 ++-- Scripts/YouTube.ps1 | 9 ++++----- 2 files changed, 6 insertions(+), 7 deletions(-) diff --git a/Scripts/MicroG.ps1 b/Scripts/MicroG.ps1 index e2c9f27..fbe8c0a 100644 --- a/Scripts/MicroG.ps1 +++ b/Scripts/MicroG.ps1 @@ -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 } diff --git a/Scripts/YouTube.ps1 b/Scripts/YouTube.ps1 index b7c7733..0eb4747 100644 --- a/Scripts/YouTube.ps1 +++ b/Scripts/YouTube.ps1 @@ -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