3 Commits

Author SHA1 Message Date
c6fe465f1e Update README.md
Signed-off-by: Lev Rusanov <30170278+JDM170@users.noreply.github.com>
2023-08-28 13:21:14 +07:00
7c399049ae Change step names in CI
Signed-off-by: Lev Rusanov <30170278+JDM170@users.noreply.github.com>
2023-08-28 13:21:00 +07:00
cfce0e86f7 Fix interacting with latest revanced-cli
Signed-off-by: Lev Rusanov <30170278+JDM170@users.noreply.github.com>
2023-08-28 13:06:13 +07:00
3 changed files with 42 additions and 45 deletions

View File

@@ -13,55 +13,54 @@ jobs:
steps:
- uses: actions/checkout@main
- name: Installing AngleSharp
- name: Install AngleSharp
run: |
Install-Package AngleSharp -Source https://www.nuget.org/api/v2 -SkipDependencies -Force
- name: Downloading YouTube
- name: Download YouTube
run: |
New-Item -Path Temp -ItemType Directory -Force
. Scripts\YouTube.ps1
- name: Downloading ReVanced CLI
- name: Download ReVanced CLI
run: |
. Scripts\ReVanced_CLI.ps1
- name: Downloading ReVanced Patches
- name: Download ReVanced Patches
run: |
. Scripts\ReVanced_Patches.ps1
- name: Downloading ReVanced Integrations
- name: Download ReVanced Integrations
run: |
. Scripts\ReVanced_Intergrations.ps1
- name: Downloading Vanced MicroG
- name: Download Vanced MicroG
run: |
. Scripts\MicroG.ps1
- name: Downloading and expanding Zulu JDK
- name: Download and expanding Zulu JDK
run: |
. Scripts\Zulu_JDK.ps1
- name: Building
- name: Build
run: |
$JavaPath = (Resolve-Path -Path "Temp\jdk_windows-x64_bin\zulu*win_x64\bin\java.exe").Path
& $JavaPath `
-jar "Temp\revanced-cli.jar" `
--apk "Temp\youtube.apk" `
--bundle "Temp\revanced-patches.jar" `
-jar "Temp\revanced-cli.jar" patch `
--patch-bundle "Temp\revanced-patches.jar" `
--merge "Temp\revanced-integrations.apk" `
--exclude hide-time-and-seekbar `
--exclude always-autorepeat `
--exclude hide-captions-button `
--exclude disable-fullscreen-panels `
--exclude old-quality-layout `
--clean `
--temp-dir "Temp\Temp" `
--out "Temp\revanced.apk"
--exclude "always-autorepeat" `
--exclude "hide-captions-button" `
--exclude "hide-timestamp" `
--exclude "hide-seekbar" `
--purge `
--resource-cache "Temp\Temp" `
--out "Temp\revanced.apk" `
"Temp\youtube.apk"
- name: Creating archive
- name: Create archive
run: |
Get-ChildItem Temp\Temp -Recurse -Force
$Parameters = @{
@@ -72,7 +71,7 @@ jobs:
}
Compress-Archive @Parameters
- name: Creating Release Notes
- name: Create Release Notes
id: read_release
run: |
# https://en.wikipedia.org/wiki/Percent-encoding
@@ -82,7 +81,7 @@ jobs:
$ReleaseName = Get-Date -f "yyyy.MM.dd"
echo "RELEASE_NAME=$ReleaseName" >> $env:GITHUB_ENV
- name: Uploading to Releases
- name: Upload to Releases
uses: softprops/action-gh-release@master
with:
tag_name: ${{ env.RELEASE_NAME }}

View File

@@ -180,20 +180,19 @@ Expand-Archive @Parameters
Remove-Item -Path "$WorkingFolder\ReVanced\jdk_windows-x64_bin.zip" -Force
# https://github.com/revanced/revanced-patches
# Let's create patched APK
& "$WorkingFolder\ReVanced\jdk\zulu*win_x64\bin\java.exe" `
-jar "$WorkingFolder\ReVanced\revanced-cli.jar" `
--apk "$WorkingFolder\ReVanced\youtube.apk" `
--bundle "$WorkingFolder\ReVanced\revanced-patches.jar" `
-jar "$WorkingFolder\ReVanced\revanced-cli.jar" patch `
--patch-bundle "$WorkingFolder\ReVanced\revanced-patches.jar" `
--merge "$WorkingFolder\ReVanced\revanced-integrations.apk" `
--exclude hide-time-and-seekbar `
--exclude always-autorepeat `
--exclude hide-captions-button `
--exclude disable-fullscreen-panels `
--exclude old-quality-layout `
--clean `
--temp-dir "$WorkingFolder\ReVanced\Temp" `
--out "$WorkingFolder\ReVanced\revanced.apk"
--exclude "always-autorepeat" `
--exclude "hide-captions-button" `
--exclude "hide-timestamp" `
--exclude "hide-seekbar" `
--purge `
--resource-cache "$WorkingFolder\ReVanced\Temp" `
--out "$WorkingFolder\ReVanced\revanced.apk" `
"$WorkingFolder\ReVanced\youtube.apk"
# Open working directory with builded files
# Invoke-Item -Path "$WorkingFolder\ReVanced"

View File

@@ -11,10 +11,9 @@ Build ReVanced package (.apk) easily than ever using latest ReVanced patches and
* To build `revanced.apk` locally you need just to run [`Build.ps1`](https://github.com/JDM170/ReVanced_Builder/blob/main/Build.ps1) via PowerShell;
* All [patches](https://github.com/revanced/revanced-patches) except the followings applied to `revanced.apk`:
* always-autorepeat
* enable-wide-searchbar
* disable-fullscreen-panels
* premium-heading
* tablet-mini-player
* hide-captions-button
* hide-timestamp
* hide-seekbar
* The script downloads latest available YouTube package (having parsed [JSON](https://github.com/revanced/revanced-patches/blob/main/patches.json)) supported by ReVanced Team from <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;
@@ -22,11 +21,7 @@ Build ReVanced package (.apk) easily than ever using latest ReVanced patches and
### By using CI/CD
```powershell
git clone https://github.com/JDM170/ReVanced_Builder
```
Trigger the [`Build`](https://github.com/JDM170/ReVanced_Builder/actions/workflows/Build.yml) Action manually to create [release page](https://github.com/JDM170/ReVanced_Builder/releases/latest) with configured release notes showing dependencies used for building.
Trigger the [`Build`](https://github.com/JDM170/ReVanced_Builder/actions/workflows/Build.yml) action manually to create [release page](https://github.com/JDM170/ReVanced_Builder/releases/latest) with configured release notes showing dependencies used for building.
![image](https://user-images.githubusercontent.com/10544660/187949763-82fd7a07-8e4e-4527-b631-11920077141f.png)
@@ -41,7 +36,11 @@ Trigger the [`Build`](https://github.com/JDM170/ReVanced_Builder/actions/workflo
## Links
* [APKMirror](https://apkmirror.com)
* [ReVanced CLI](https://github.com/revanced/revanced-cli)
* [ReVanced Patches](https://github.com/revanced/revanced-patches)
* [ReVanced Manager](https://github.com/revanced/revanced-manager)
* [Telegram](https://t.me/sophia_chat)
* [ReVanced Integrations](https://github.com/revanced/revanced-integrations)
* [Vanced MicroG](https://github.com/TeamVanced/VancedMicroG)
* [AngleSharp](https://github.com/AngleSharp/AngleSharp)
* [Zulu JDK](https://github.com/ScoopInstaller/Java)
* [Sophia Telegram chat](https://t.me/sophia_chat)