5 Commits

Author SHA1 Message Date
b879ad95f3 Update Build.ps1
Signed-off-by: Lev Rusanov <30170278+JDM170@users.noreply.github.com>
2025-01-28 21:32:16 +07:00
3edfdcc627 Update Build.yml
Signed-off-by: Lev Rusanov <30170278+JDM170@users.noreply.github.com>
2025-01-28 21:32:03 +07:00
d2ab1f83d7 Update README.md 2025-01-01 18:10:04 +07:00
689cf90f6a Update Build.yml 2025-01-01 16:38:54 +07:00
9c38444051 Update YouTube.ps1
Signed-off-by: Lev Rusanov <30170278+JDM170@users.noreply.github.com>
2024-12-01 18:29:38 +07:00
4 changed files with 17 additions and 8 deletions

View File

@@ -73,7 +73,7 @@ jobs:
echo "RELEASE_NAME=$ReleaseName" >> $env:GITHUB_ENV
- name: Upload to Releases
uses: softprops/action-gh-release@master
uses: softprops/action-gh-release@v2.2.1
with:
tag_name: ${{ env.RELEASE_NAME }}
body_path: ${{ steps.read_release.outputs.ReleaseBody }}

View File

@@ -223,4 +223,13 @@ Remove-Item -Path "$WorkingFolder\ReVanced\jdk_windows-x64_bin.zip" -Force
# Remove temp directory, because cli failed to clean up directory
# Remove-Item -Path "$WorkingFolder\ReVanced\Temp" -Recurse -Force -Confirm:$false
$Files = @(
"$WorkingFolder\ReVanced\Temp",
"$WorkingFolder\ReVanced\jdk",
"$WorkingFolder\ReVanced\revanced-cli.jar",
"$WorkingFolder\ReVanced\revanced-patches.rvp",
"$WorkingFolder\ReVanced\youtube.apk"
)
Remove-Item -Path $Files -Recurse -Force
Write-Warning -Message "Latest available revanced.apk & microg.apk are ready in `"$WorkingFolder\ReVanced`""

View File

@@ -14,7 +14,7 @@ Build ReVanced package (.apk) easily than ever using latest ReVanced patches and
* hide-captions-button
* hide-timestamp
* hide-seekbar
* The script downloads latest available YouTube package (having parsed [ReVanced API](https://api.revanced.app/v2/patches/latest)) supported by ReVanced Team from [APKMirror](https://apkmirror.com) and all dependencies and build package using [Zulu JDK](https://www.azul.com/downloads/?package=jdk);
* The script downloads latest available YouTube package (having parsed [ReVanced API](https://api.revanced.app/v4/patches/list)) supported by ReVanced Team from [APKMirror](https://apkmirror.com) and all dependencies and build package using [Zulu JDK](https://www.azul.com/downloads/?package=jdk);
* Script installs no apps — everything will be held in your `Script location folder\ReVanced`;
* After compiling you get `revanced.apk` & `microg.apk` ready to be installed;
* Release notes are generated dynamically using the [ReleaseNotesTemplate.md](https://github.com/JDM170/ReVanced_Builder/blob/main/ReleaseNotesTemplate.md) template.
@@ -30,7 +30,8 @@ Trigger the [`Build`](https://github.com/JDM170/ReVanced_Builder/actions/workflo
## Requirements if you compile locally
* Windows 10 x64 or Windows 11
* Windows PowerShell 5.1/7
* Windows PowerShell 5.1
* if you want to use PowerShell 7, you will have to install a 3rd party HTML parser ([AngleSharp](https://github.com/AngleSharp/AngleSharp))
## Links
@@ -38,7 +39,6 @@ Trigger the [`Build`](https://github.com/JDM170/ReVanced_Builder/actions/workflo
* [APKMirror](https://apkmirror.com)
* [ReVanced CLI](https://github.com/revanced/revanced-cli)
* [ReVanced Patches](https://github.com/revanced/revanced-patches)
* [ReVanced Integrations](https://github.com/revanced/revanced-integrations)
* [ReVanced MicroG](https://github.com/ReVanced/GmsCore)
* [AngleSharp](https://github.com/AngleSharp/AngleSharp)
* [Zulu JDK](https://github.com/ScoopInstaller/Java)

View File

@@ -1,12 +1,12 @@
# Get the latest supported YouTube version to patch
# https://api.revanced.app/docs/swagger
$Parameters = @{
Uri = "https://api.revanced.app/v2/patches/latest"
Uri = "https://api.revanced.app/v4/patches/list"
UseBasicParsing = $true
}
$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
$JSON = (Invoke-Webrequest @Parameters).Content | ConvertFrom-Json
$versions = ($JSON | Where-Object -FilterScript {$_.name -eq "Video ads"})
$LatestSupported = $versions.compatiblePackages.'com.google.android.youtube' | Sort-Object -Descending -Unique | Select-Object -First 1
# We need a NON-bundle version
# https://apkpure.net/ru/youtube/com.google.android.youtube/versions