commit
7a0e936eef
68
.gitea/workflows/build.yml
Normal file
68
.gitea/workflows/build.yml
Normal file
@ -0,0 +1,68 @@
|
|||||||
|
name: Build
|
||||||
|
on: [push]
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
name: Build
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: Checkout
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
|
- name: Create tag
|
||||||
|
run: git tag "${{ github.event.head_commit.message }}"
|
||||||
|
|
||||||
|
- 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 version code
|
||||||
|
id: vars
|
||||||
|
run: |
|
||||||
|
echo "version_code=$(cat versionCode.txt)" >> $GITHUB_OUTPUT
|
||||||
|
|
||||||
|
- name: Get youtube apk
|
||||||
|
run: |
|
||||||
|
wget "https://d.apkpure.net/b/APK/com.google.android.youtube?versionCode=${{ steps.vars.outputs.version_code }}" \
|
||||||
|
--progress=dot:style:mega \
|
||||||
|
-O input.apk
|
||||||
|
|
||||||
|
- 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:style: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[1] | .browser_download_url' | \
|
||||||
|
wget --progress=dot -i - -O revanced-patches.jar
|
||||||
|
|
||||||
|
- name: Get revanced-integrations
|
||||||
|
run: |
|
||||||
|
curl -s https://api.github.com/repos/ReVanced/revanced-integrations/releases/latest | \
|
||||||
|
jq --raw-output '.assets[0] | .browser_download_url' | \
|
||||||
|
wget --progress=dot -i - -O revanced-integrations.apk
|
||||||
|
|
||||||
|
- name: Build youtube-revacned
|
||||||
|
run: |
|
||||||
|
java -jar revanced-cli.jar patch \
|
||||||
|
-b revanced-patches.jar \
|
||||||
|
-m revanced-integrations.apk \
|
||||||
|
-o youtube-revanced.apk \
|
||||||
|
input.apk
|
||||||
|
|
||||||
|
- name: Create release
|
||||||
|
uses: akkuman/gitea-release-action@v1
|
||||||
|
env:
|
||||||
|
NODE_OPTIONS: '--experimental-fetch'
|
||||||
|
with:
|
||||||
|
files: |-
|
||||||
|
youtube-revanced.apk
|
||||||
6
.gitignore
vendored
Normal file
6
.gitignore
vendored
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
revanced-cli.jar
|
||||||
|
revanced-patches.jar
|
||||||
|
revanced-integrations.apk
|
||||||
|
input.apk
|
||||||
|
|
||||||
|
youtube-revanced*
|
||||||
25
build.sh
Executable file
25
build.sh
Executable file
@ -0,0 +1,25 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
versionCode=$(cat versionCode.txt)
|
||||||
|
|
||||||
|
wget "https://d.apkpure.net/b/APK/com.google.android.youtube?versionCode=${versionCode}" \
|
||||||
|
--progress=dot:style: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:style:mega -i - -O revanced-cli.jar
|
||||||
|
|
||||||
|
curl -s https://api.github.com/repos/ReVanced/revanced-patches/releases/latest | \
|
||||||
|
jq --raw-output '.assets[1] | .browser_download_url' | \
|
||||||
|
wget -i - -O revanced-patches.jar
|
||||||
|
|
||||||
|
curl -s https://api.github.com/repos/ReVanced/revanced-integrations/releases/latest | \
|
||||||
|
jq --raw-output '.assets[0] | .browser_download_url' | \
|
||||||
|
wget -i - -O revanced-integrations.apk
|
||||||
|
|
||||||
|
java -jar revanced-cli.jar patch \
|
||||||
|
-b revanced-patches.jar \
|
||||||
|
-m revanced-integrations.apk \
|
||||||
|
-o youtube-revanced.apk \
|
||||||
|
input.apk
|
||||||
1
versionCode.txt
Normal file
1
versionCode.txt
Normal file
@ -0,0 +1 @@
|
|||||||
|
1544809920
|
||||||
Loading…
x
Reference in New Issue
Block a user