mirror of
https://github.com/JDM170/ReVanced_Builder
synced 2025-11-29 14:41:46 +07:00
Compare commits
5 Commits
2024.12.01
...
2025.05.01
| Author | SHA1 | Date | |
|---|---|---|---|
|
b879ad95f3
|
|||
|
3edfdcc627
|
|||
| d2ab1f83d7 | |||
| 689cf90f6a | |||
|
9c38444051
|
2
.github/workflows/Build.yml
vendored
2
.github/workflows/Build.yml
vendored
@@ -73,7 +73,7 @@ jobs:
|
|||||||
echo "RELEASE_NAME=$ReleaseName" >> $env:GITHUB_ENV
|
echo "RELEASE_NAME=$ReleaseName" >> $env:GITHUB_ENV
|
||||||
|
|
||||||
- name: Upload to Releases
|
- name: Upload to Releases
|
||||||
uses: softprops/action-gh-release@master
|
uses: softprops/action-gh-release@v2.2.1
|
||||||
with:
|
with:
|
||||||
tag_name: ${{ env.RELEASE_NAME }}
|
tag_name: ${{ env.RELEASE_NAME }}
|
||||||
body_path: ${{ steps.read_release.outputs.ReleaseBody }}
|
body_path: ${{ steps.read_release.outputs.ReleaseBody }}
|
||||||
|
|||||||
@@ -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 temp directory, because cli failed to clean up directory
|
||||||
# Remove-Item -Path "$WorkingFolder\ReVanced\Temp" -Recurse -Force -Confirm:$false
|
# 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`""
|
Write-Warning -Message "Latest available revanced.apk & microg.apk are ready in `"$WorkingFolder\ReVanced`""
|
||||||
|
|||||||
@@ -14,7 +14,7 @@ Build ReVanced package (.apk) easily than ever using latest ReVanced patches and
|
|||||||
* hide-captions-button
|
* hide-captions-button
|
||||||
* hide-timestamp
|
* hide-timestamp
|
||||||
* hide-seekbar
|
* 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`;
|
* 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;
|
* 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.
|
* 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
|
## Requirements if you compile locally
|
||||||
|
|
||||||
* Windows 10 x64 or Windows 11
|
* 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
|
## Links
|
||||||
|
|
||||||
@@ -38,7 +39,6 @@ Trigger the [`Build`](https://github.com/JDM170/ReVanced_Builder/actions/workflo
|
|||||||
* [APKMirror](https://apkmirror.com)
|
* [APKMirror](https://apkmirror.com)
|
||||||
* [ReVanced CLI](https://github.com/revanced/revanced-cli)
|
* [ReVanced CLI](https://github.com/revanced/revanced-cli)
|
||||||
* [ReVanced Patches](https://github.com/revanced/revanced-patches)
|
* [ReVanced Patches](https://github.com/revanced/revanced-patches)
|
||||||
* [ReVanced Integrations](https://github.com/revanced/revanced-integrations)
|
|
||||||
* [ReVanced MicroG](https://github.com/ReVanced/GmsCore)
|
* [ReVanced MicroG](https://github.com/ReVanced/GmsCore)
|
||||||
* [AngleSharp](https://github.com/AngleSharp/AngleSharp)
|
* [AngleSharp](https://github.com/AngleSharp/AngleSharp)
|
||||||
* [Zulu JDK](https://github.com/ScoopInstaller/Java)
|
* [Zulu JDK](https://github.com/ScoopInstaller/Java)
|
||||||
|
|||||||
@@ -1,12 +1,12 @@
|
|||||||
# Get the latest supported YouTube version to patch
|
# Get the latest supported YouTube version to patch
|
||||||
# https://api.revanced.app/docs/swagger
|
# https://api.revanced.app/docs/swagger
|
||||||
$Parameters = @{
|
$Parameters = @{
|
||||||
Uri = "https://api.revanced.app/v2/patches/latest"
|
Uri = "https://api.revanced.app/v4/patches/list"
|
||||||
UseBasicParsing = $true
|
UseBasicParsing = $true
|
||||||
}
|
}
|
||||||
$JSON = (Invoke-RestMethod @Parameters).patches
|
$JSON = (Invoke-Webrequest @Parameters).Content | ConvertFrom-Json
|
||||||
$versions = ($JSON | Where-Object -FilterScript {$_.compatiblePackages.name -eq "com.google.android.youtube"}).compatiblePackages.versions
|
$versions = ($JSON | Where-Object -FilterScript {$_.name -eq "Video ads"})
|
||||||
$LatestSupported = $versions | Sort-Object -Descending -Unique | Select-Object -First 1
|
$LatestSupported = $versions.compatiblePackages.'com.google.android.youtube' | Sort-Object -Descending -Unique | Select-Object -First 1
|
||||||
|
|
||||||
# We need a NON-bundle version
|
# We need a NON-bundle version
|
||||||
# https://apkpure.net/ru/youtube/com.google.android.youtube/versions
|
# https://apkpure.net/ru/youtube/com.google.android.youtube/versions
|
||||||
|
|||||||
Reference in New Issue
Block a user