mirror of
https://github.com/j-hc/revanced-magisk-module.git
synced 2025-05-08 02:24:28 +02:00
fix possible word splitting and update readme
This commit is contained in:
parent
117e6130b0
commit
a4970bf434
@ -20,6 +20,7 @@ If you wish to include/exclude some patches to your liking:
|
|||||||
* Grab your module from [releases](../../releases)
|
* Grab your module from [releases](../../releases)
|
||||||
|
|
||||||
# Building the Magisk Modules
|
# Building the Magisk Modules
|
||||||
|
If you are going to build locally, make sure you have [Azul Zulu distribution of OpenJDK 17](https://www.azul.com/downloads/?version=java-17-lts&os=linux&architecture=x86-64-bit&package=jdk)
|
||||||
|
|
||||||
```console
|
```console
|
||||||
$ ./build.sh all
|
$ ./build.sh all
|
||||||
|
5
build.sh
5
build.sh
@ -2,11 +2,12 @@
|
|||||||
|
|
||||||
set -euo pipefail
|
set -euo pipefail
|
||||||
|
|
||||||
source utils.sh
|
|
||||||
|
|
||||||
YT_PATCHER_ARGS="-e microg-support -e swipe-controls"
|
YT_PATCHER_ARGS="-e microg-support -e swipe-controls"
|
||||||
MUSIC_PATCHER_ARGS="-e microg-support"
|
MUSIC_PATCHER_ARGS="-e microg-support"
|
||||||
|
|
||||||
|
# dont change anything after this point ↓
|
||||||
|
source utils.sh
|
||||||
|
|
||||||
BUILD_YT=false
|
BUILD_YT=false
|
||||||
BUILD_MUSIC=false
|
BUILD_MUSIC=false
|
||||||
|
|
||||||
|
6
utils.sh
6
utils.sh
@ -96,14 +96,14 @@ build_yt() {
|
|||||||
echo "Supported versions of the YouTube patch: $supported_versions"
|
echo "Supported versions of the YouTube 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}'"
|
||||||
local yt_base_apk="${TEMP_DIR}/base-v${last_ver}.apk"
|
local yt_base_apk="${TEMP_DIR}/yt-stock-v${last_ver}.apk"
|
||||||
|
|
||||||
if [ ! -f "$yt_base_apk" ]; then
|
if [ ! -f "$yt_base_apk" ]; then
|
||||||
dl_yt "$last_ver" "$yt_base_apk"
|
dl_yt "$last_ver" "$yt_base_apk"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
local yt_patched_apk="${TEMP_DIR}/yt-revanced-base.apk"
|
local yt_patched_apk="${TEMP_DIR}/yt-revanced-base.apk"
|
||||||
java -jar $RV_CLI_JAR -a $yt_base_apk -c -o $yt_patched_apk -b $RV_PATCHES_JAR -m $RV_INTEGRATIONS_APK $1
|
java -jar "$RV_CLI_JAR" -a "$yt_base_apk" -c -o "$yt_patched_apk" -b "$RV_PATCHES_JAR" -m "$RV_INTEGRATIONS_APK" "$1"
|
||||||
mv -f "$yt_patched_apk" "${MODULE_TEMPLATE_DIR}/base.apk"
|
mv -f "$yt_patched_apk" "${MODULE_TEMPLATE_DIR}/base.apk"
|
||||||
|
|
||||||
echo "Creating the magisk module for YouTube..."
|
echo "Creating the magisk module for YouTube..."
|
||||||
@ -136,7 +136,7 @@ build_music() {
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
local music_patched_apk="${TEMP_DIR}/music-revanced-base.apk"
|
local music_patched_apk="${TEMP_DIR}/music-revanced-base.apk"
|
||||||
java -jar $RV_CLI_JAR -a $music_apk -c -o $music_patched_apk -b $RV_PATCHES_JAR -m $RV_INTEGRATIONS_APK $1
|
java -jar "$RV_CLI_JAR" -a "$music_apk" -c -o "$music_patched_apk" -b "$RV_PATCHES_JAR" -m "$RV_INTEGRATIONS_APK" "$1"
|
||||||
mv -f "$music_patched_apk" "${MODULE_TEMPLATE_DIR}/base.apk"
|
mv -f "$music_patched_apk" "${MODULE_TEMPLATE_DIR}/base.apk"
|
||||||
|
|
||||||
echo "Creating the magisk module for YouTube Music ($arch)"
|
echo "Creating the magisk module for YouTube Music ($arch)"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user