Skip to content

Commit

Permalink
Update for patches v5.0.0
Browse files Browse the repository at this point in the history
Signed-off-by: Leonardo Ledda <[email protected]>
  • Loading branch information
LeddaZ committed Nov 11, 2024
1 parent 1b3a257 commit 1f4dfbd
Show file tree
Hide file tree
Showing 7 changed files with 21 additions and 60 deletions.
9 changes: 1 addition & 8 deletions .github/workflows/all.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,6 @@ jobs:
java-version: '17'
distribution: zulu

- name: Download ReVanced Integrations
uses: robinraju/[email protected]
with:
repository: 'ReVanced/revanced-integrations'
latest: true
fileName: '*.apk'

- name: Download ReVanced CLI
uses: robinraju/[email protected]
with:
Expand All @@ -35,7 +28,7 @@ jobs:
with:
repository: 'ReVanced/revanced-patches'
latest: true
fileName: '*.jar'
fileName: '*.rvp'

- name: Download YouTube APK
uses: robinraju/[email protected]
Expand Down
9 changes: 1 addition & 8 deletions .github/workflows/x.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,6 @@ jobs:
java-version: '17'
distribution: zulu

- name: Download ReVanced Integrations
uses: robinraju/[email protected]
with:
repository: 'ReVanced/revanced-integrations'
latest: true
fileName: '*.apk'

- name: Download ReVanced CLI
uses: robinraju/[email protected]
with:
Expand All @@ -35,7 +28,7 @@ jobs:
with:
repository: 'ReVanced/revanced-patches'
latest: true
fileName: '*.jar'
fileName: '*.rvp'

- name: Download X APK
uses: robinraju/[email protected]
Expand Down
9 changes: 1 addition & 8 deletions .github/workflows/yt-ytm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,6 @@ jobs:
java-version: '17'
distribution: zulu

- name: Download ReVanced Integrations
uses: robinraju/[email protected]
with:
repository: 'ReVanced/revanced-integrations'
latest: true
fileName: '*.apk'

- name: Download ReVanced CLI
uses: robinraju/[email protected]
with:
Expand All @@ -35,7 +28,7 @@ jobs:
with:
repository: 'ReVanced/revanced-patches'
latest: true
fileName: '*.jar'
fileName: '*.rvp'

- name: Download YouTube APK
uses: robinraju/[email protected]
Expand Down
9 changes: 1 addition & 8 deletions .github/workflows/yt.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,6 @@ jobs:
java-version: '17'
distribution: zulu

- name: Download ReVanced Integrations
uses: robinraju/[email protected]
with:
repository: 'ReVanced/revanced-integrations'
latest: true
fileName: '*.apk'

- name: Download ReVanced CLI
uses: robinraju/[email protected]
with:
Expand All @@ -35,7 +28,7 @@ jobs:
with:
repository: 'ReVanced/revanced-patches'
latest: true
fileName: '*.jar'
fileName: '*.rvp'

- name: Download YouTube APK
uses: robinraju/[email protected]
Expand Down
9 changes: 1 addition & 8 deletions .github/workflows/ytm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,6 @@ jobs:
java-version: '17'
distribution: zulu

- name: Download ReVanced Integrations
uses: robinraju/[email protected]
with:
repository: 'ReVanced/revanced-integrations'
latest: true
fileName: '*.apk'

- name: Download ReVanced CLI
uses: robinraju/[email protected]
with:
Expand All @@ -35,7 +28,7 @@ jobs:
with:
repository: 'ReVanced/revanced-patches'
latest: true
fileName: '*.jar'
fileName: '*.rvp'

- name: Download YouTube Music APKs
uses: robinraju/[email protected]
Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ This repo template will allow you to build non-root ReVanced, ReVanced Music and
You can modify the `scripts/build.sh` script to choose the patches you want. A list of available patches and their descriptions can be found [here](https://revanced.app/patches).

### Supported versions
- YouTube: `19.34.42`
- YouTube Music: `7.24.51`
- X: `10.63.1-release.0`
- YouTube: `19.43.41`
- YouTube Music: `7.25.52`
- X: `10.65.2-release.0`

## How to setup
1. Fork or create a new repository using this repository as a template ([Guide](https://docs.github.com/en/repositories/creating-and-managing-repositories/creating-a-repository-from-a-template)). DO NOT FORK if you need to set the new repo to private.
Expand Down
30 changes: 13 additions & 17 deletions scripts/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,16 +12,12 @@ while getopts mrx flag; do
esac
done

for file in *integrations*; do
mv -- "$file" revanced-integrations.apk
done

for file in *cli*; do
mv -- "$file" revanced-cli.jar
done

for file in *patches*; do
mv -- "$file" revanced-patches.jar
mv -- "$file" revanced-patches.rvp
done

mkdir -p build/yt
Expand All @@ -34,8 +30,8 @@ if [ "$revanced" = 'yes' ]; then
echo "**************************"

if [ -f "youtube.apk" ]; then
java -jar revanced-cli.jar patch -m revanced-integrations.apk \
-b revanced-patches.jar -o build/yt/yt.apk youtube.apk
java -jar revanced-cli.jar patch -p revanced-patches.rvp \
-o build/yt/yt.apk youtube.apk
echo "YouTube ReVanced build finished"
else
echo "Cannot find YouTube APK, skipping build"
Expand All @@ -51,35 +47,35 @@ if [ "$music" = 'yes' ]; then

echo "=== Building arm APK ==="
if [ -f "music-arm.apk" ]; then
java -jar revanced-cli.jar patch -m revanced-integrations.apk \
-b revanced-patches.jar -o build/ytm/ytm-armeabi-v7a.apk music-arm.apk
java -jar revanced-cli.jar patch -p revanced-patches.rvp \
-o build/ytm/ytm-armeabi-v7a.apk music-arm.apk
echo "ReVanced Music arm build finished"
else
echo "Cannot find YouTube Music arm APK, skipping build"
fi

echo "=== Building arm64 APK === "
if [ -f "music-arm64.apk" ]; then
java -jar revanced-cli.jar patch -m revanced-integrations.apk \
-b revanced-patches.jar -o build/ytm/ytm-arm64-v8a.apk music-arm64.apk
java -jar revanced-cli.jar patch -p revanced-patches.rvp \
-o build/ytm/ytm-arm64-v8a.apk music-arm64.apk
echo "ReVanced Music arm64 build finished"
else
echo "Cannot find YouTube Music arm64 APK, skipping build"
fi

echo "=== Building x86 APK ==="
if [ -f "music-x86.apk" ]; then
java -jar revanced-cli.jar patch -m revanced-integrations.apk \
-b revanced-patches.jar -o build/ytm/ytm-x86.apk music-x86.apk
java -jar revanced-cli.jar patch -p revanced-patches.rvp \
-o build/ytm/ytm-x86.apk music-x86.apk
echo "ReVanced Music x86 build finished"
else
echo "Cannot find YouTube Music x86 APK, skipping build"
fi

echo "=== Building x86_64 APK ==="
if [ -f "music-x86_64.apk" ]; then
java -jar revanced-cli.jar patch -m revanced-integrations.apk \
-b revanced-patches.jar -o build/ytm/ytm-x86_64.apk music-x86_64.apk
java -jar revanced-cli.jar patch -p revanced-patches.rvp \
-o build/ytm/ytm-x86_64.apk music-x86_64.apk
echo "ReVanced Music x86_64 build finished"
else
echo "Cannot find YouTube Music x86_64 APK, skipping build"
Expand All @@ -95,8 +91,8 @@ if [ "$x" = 'yes' ]; then
echo "********************"

if [ -f "x.apk" ]; then
java -jar revanced-cli.jar patch -m revanced-integrations.apk \
-b revanced-patches.jar -e "Hide recommended users" \
java -jar revanced-cli.jar patch -p revanced-patches.rvp \
--exclusive -e "Hide recommended users" \
-e "Hide view count" -o build/x/x.apk x.apk
echo "X build finished"
else
Expand Down

0 comments on commit 1f4dfbd

Please sign in to comment.