Initial commit

This commit is contained in:
Buduf 2025-02-11 10:41:44 +01:00
commit 9a5dbf0a54
4 changed files with 87 additions and 0 deletions

View File

@ -0,0 +1,61 @@
name: Build
on:
issue_comment:
types: [created]
jobs:
build:
name: Build
if: ${{ !gitea.event.issue.pull_request && gitea.event.issue.number == 1 }}
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Java
uses: actions/setup-java@v4
with:
distribution: 'zulu'
java-version: '11'
- name: Install jq
run: apt update && apt install jq -y
- name: Get youtube apk
run: |
wget "https://my.buduf.win/APK/youtube-$VERSION.apk" \
--progress=dot:mega \
-O input.apk
env:
VERSION: ${{ gitea.event.comment.body }}
- name: Get revanced-cli
run: |
curl -s https://api.github.com/repos/ReVanced/revanced-cli/releases/latest | \
jq --raw-output '.assets[0] | .browser_download_url' | \
wget --progress=dot:mega -i - -O revanced-cli.jar
- name: Get revanced-patches
run: |
curl -s https://api.github.com/repos/ReVanced/revanced-patches/releases/latest | \
jq --raw-output '.assets[0] | .browser_download_url' | \
wget --progress=dot -i - -O revanced-patches.rvp
- name: Build youtube-revacned
run: |
java -jar revanced-cli.jar patch \
--custom-aapt2-binary lib/arm64-v8a/libaapt2.so \
-p revanced-patches.rvp \
-o youtube-revanced.apk \
input.apk
- name: Create release
uses: akkuman/gitea-release-action@v1
env:
VERSION: "v${{ gitea.event.comment.body }}"
with:
name: ${{ env.VERSION }}
tag_name: ${{ env.VERSION }}
files: |-
youtube-music-revanced.apk

5
.gitignore vendored Normal file
View File

@ -0,0 +1,5 @@
revanced-cli.jar
revanced-patches.rvp
input.apk
youtube-revanced*

21
build.sh Executable file
View File

@ -0,0 +1,21 @@
#!/bin/bash
# Generic script, the repo uses gitea actions workflow
wget "$1" \
--progress=dot:mega \
-O input.apk
curl -s https://api.github.com/repos/ReVanced/revanced-cli/releases/latest | \
jq --raw-output '.assets[0] | .browser_download_url' | \
wget --progress=dot:mega -i - -O revanced-cli.rvp
curl -s https://api.github.com/repos/ReVanced/revanced-patches/releases/latest | \
jq --raw-output '.assets[0] | .browser_download_url' | \
wget --progress=dot -i - -O revanced-patches.rvp
java -jar revanced-cli.jar patch \
--custom-aapt2-binary lib/arm64-v8a/libaapt2.so \
-p revanced-patches.rvp \
-o youtube-revanced.apk \
input.apk

BIN
lib/arm64-v8a/libaapt2.so Executable file

Binary file not shown.