mirror of
https://github.com/j-hc/revanced-magisk-module.git
synced 2025-05-02 23:54:39 +02:00
exclude premium-heading patch
Former-commit-id: 5f35d945d31f9278a74de050208ae10977e14607
This commit is contained in:
parent
c5b66e94be
commit
13f1c6a4b6
6
.github/workflows/build.yml
vendored
6
.github/workflows/build.yml
vendored
@ -16,12 +16,16 @@ jobs:
|
|||||||
echo ::set-output name=OUTPUT::$(find . -maxdepth 1 -name "revanced-magisk-*.zip" -printf '%P')
|
echo ::set-output name=OUTPUT::$(find . -maxdepth 1 -name "revanced-magisk-*.zip" -printf '%P')
|
||||||
echo ::set-output name=VERSION::$(find . -maxdepth 1 -name "revanced-magisk-*.zip" -printf '%P' | sed -n 's/.*revanced-magisk-\(.*\)\.zip.*/\1/p')
|
echo ::set-output name=VERSION::$(find . -maxdepth 1 -name "revanced-magisk-*.zip" -printf '%P' | sed -n 's/.*revanced-magisk-\(.*\)\.zip.*/\1/p')
|
||||||
shell: bash
|
shell: bash
|
||||||
|
- name: Current Date
|
||||||
|
id: date
|
||||||
|
run: echo "::set-output name=DATE::$(date +'%m-%d')"
|
||||||
- name: Upload release
|
- name: Upload release
|
||||||
uses: svenstaro/upload-release-action@v2
|
uses: svenstaro/upload-release-action@v2
|
||||||
with:
|
with:
|
||||||
|
body: ${{ steps.date.outputs.DATE }}
|
||||||
repo_token: ${{ secrets.GITHUB_TOKEN }}
|
repo_token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
file: ${{ steps.get_output_name.outputs.OUTPUT }}
|
file: ${{ steps.get_output_name.outputs.OUTPUT }}
|
||||||
asset_name: ${{ steps.get_output_name.outputs.OUTPUT }}
|
asset_name: ${{ steps.get_output_name.outputs.OUTPUT }}
|
||||||
release_name: ${{ steps.get_output_name.outputs.OUTPUT }}
|
release_name: ${{ steps.get_output_name.outputs.OUTPUT }}
|
||||||
tag: ${{ steps.get_output_name.outputs.VERSION }}
|
tag: 2022-${{ steps.get_output_name.outputs.VERSION }}-${{ steps.date.outputs.DATE }}
|
||||||
overwrite: true
|
overwrite: true
|
||||||
|
1
.gitignore
vendored
1
.gitignore
vendored
@ -2,5 +2,6 @@
|
|||||||
*.apk
|
*.apk
|
||||||
*.zip
|
*.zip
|
||||||
*.keystore
|
*.keystore
|
||||||
|
revanced-cache
|
||||||
|
|
||||||
.v*
|
.v*
|
||||||
|
@ -7,7 +7,7 @@ echo "All necessary files (revanced cli, patches and integrations, stock YouTube
|
|||||||
WGET_HEADER='User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Firefox/102.0'
|
WGET_HEADER='User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Firefox/102.0'
|
||||||
|
|
||||||
function req() {
|
function req() {
|
||||||
wget -nv -O $2 --header="$WGET_HEADER" $1
|
wget -nv --show-progress -O $2 --header="$WGET_HEADER" $1
|
||||||
}
|
}
|
||||||
|
|
||||||
# yes this is how i download the stock yt apk from apkmirror
|
# yes this is how i download the stock yt apk from apkmirror
|
||||||
@ -41,7 +41,7 @@ SUPPORTED_VERSIONS=$(unzip -p $RV_PATCHES_JAR | strings -n 8 -s , | sed -rn 's/.
|
|||||||
echo "Supported versions of the patch: $SUPPORTED_VERSIONS"
|
echo "Supported versions of the patch: $SUPPORTED_VERSIONS"
|
||||||
LAST_VER=$(echo $SUPPORTED_VERSIONS | awk -F, '{ print $NF }')
|
LAST_VER=$(echo $SUPPORTED_VERSIONS | awk -F, '{ print $NF }')
|
||||||
echo "Choosing $LAST_VER"
|
echo "Choosing $LAST_VER"
|
||||||
BASE_APK="base-v$LAST_VER.apk"
|
BASE_APK="base-v${LAST_VER}.apk"
|
||||||
|
|
||||||
if [ ! -f $BASE_APK ]; then
|
if [ ! -f $BASE_APK ]; then
|
||||||
echo "$BASE_APK could not be found, will be downloaded from apkmirror.."
|
echo "$BASE_APK could not be found, will be downloaded from apkmirror.."
|
||||||
@ -49,14 +49,14 @@ if [ ! -f $BASE_APK ]; then
|
|||||||
unzip -p yt-stock-v$LAST_VER.zip base.apk >$BASE_APK
|
unzip -p yt-stock-v$LAST_VER.zip base.apk >$BASE_APK
|
||||||
fi
|
fi
|
||||||
|
|
||||||
java -jar $RV_CLI_JAR -a $BASE_APK -c -o revanced-base.apk -b $RV_PATCHES_JAR -e microg-support -m $RV_INTEGRATIONS_APK
|
java -jar $RV_CLI_JAR -a $BASE_APK -c -o revanced-base.apk -b $RV_PATCHES_JAR -e microg-support -e premium-heading -m $RV_INTEGRATIONS_APK
|
||||||
mv -f revanced-base.apk ./revanced-magisk/revanced-base.apk
|
mv -f revanced-base.apk ./revanced-magisk/revanced-base.apk
|
||||||
|
|
||||||
echo "Creating the magisk module..."
|
echo "Creating the magisk module..."
|
||||||
OUTPUT="revanced-magisk-v$LAST_VER.zip"
|
OUTPUT="revanced-magisk-v${LAST_VER}.zip"
|
||||||
sed -i "s/version=v.*$/version=v$LAST_VER/g" ./revanced-magisk/module.prop
|
sed -i "s/version=v.*$/version=v${LAST_VER}/g" ./revanced-magisk/module.prop
|
||||||
|
|
||||||
cd revanced-magisk
|
cd revanced-magisk
|
||||||
zip -r ../$OUTPUT .
|
zip -r ../$OUTPUT .
|
||||||
|
|
||||||
echo "Created the magisk module '$OUTPUT'"
|
echo "Created the magisk module '${OUTPUT}'"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user