mirror of
https://github.com/j-hc/revanced-magisk-module.git
synced 2025-04-30 06:34:27 +02:00
update build-termux.sh
This commit is contained in:
parent
9eb353a50a
commit
179ff52d46
@ -5,6 +5,8 @@
|
|||||||
[](https://github.com/j-hc/revanced-magisk-module/actions/workflows/build.yml)
|
[](https://github.com/j-hc/revanced-magisk-module/actions/workflows/build.yml)
|
||||||
[](https://github.com/j-hc/revanced-magisk-module/actions/workflows/ci.yml)
|
[](https://github.com/j-hc/revanced-magisk-module/actions/workflows/ci.yml)
|
||||||
|
|
||||||
|
Extensive ReVanced builder
|
||||||
|
|
||||||
Get the [latest CI release](https://github.com/j-hc/revanced-magisk-module/releases).
|
Get the [latest CI release](https://github.com/j-hc/revanced-magisk-module/releases).
|
||||||
|
|
||||||
[**mindetach module**](https://github.com/j-hc/mindetach-magisk) in the releases section detaches YouTube and YouTube Music from Play Store and blocks it from updating them.
|
[**mindetach module**](https://github.com/j-hc/mindetach-magisk) in the releases section detaches YouTube and YouTube Music from Play Store and blocks it from updating them.
|
||||||
|
@ -25,23 +25,28 @@ if [ ! -f ~/.rvmm_"$(date '+%Y%m')" ]; then
|
|||||||
: >~/.rvmm_"$(date '+%Y%m')"
|
: >~/.rvmm_"$(date '+%Y%m')"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
pr "Cloning revanced-magisk-module repository..."
|
if [ -f build.sh ]; then cd ..; fi
|
||||||
if [ -d revanced-magisk-module ]; then
|
if [ -d revanced-magisk-module ]; then
|
||||||
cd revanced-magisk-module
|
pr "Checking for revanced-magisk-module updates"
|
||||||
git fetch
|
git -C revanced-magisk-module fetch
|
||||||
git rebase -X ours
|
if git -C revanced-magisk-module status | grep -q 'is behind'; then
|
||||||
elif [ -f build.sh ]; then
|
pr "revanced-magisk-module already is not synced with upstream."
|
||||||
git fetch
|
pr "Cloning revanced-magisk-module. config.toml will be preserved."
|
||||||
git rebase -X ours
|
cp -f revanced-magisk-module/config.toml .
|
||||||
|
rm -rf revanced-magisk-module
|
||||||
|
git clone https://github.com/j-hc/revanced-magisk-module --recurse --depth 1
|
||||||
|
mv -f config.toml revanced-magisk-module/config.toml
|
||||||
|
fi
|
||||||
else
|
else
|
||||||
|
pr "Cloning revanced-magisk-module."
|
||||||
git clone https://github.com/j-hc/revanced-magisk-module --recurse --depth 1
|
git clone https://github.com/j-hc/revanced-magisk-module --recurse --depth 1
|
||||||
cd revanced-magisk-module
|
sed -i '/^enabled.*/d; /^\[.*\]/a enabled = false' revanced-magisk-module/config.toml
|
||||||
sed -i '/^enabled.*/d; /^\[.*\]/a enabled = false' config.toml
|
|
||||||
fi
|
fi
|
||||||
|
cd revanced-magisk-module
|
||||||
|
chmod +x build.sh build-termux.sh
|
||||||
|
|
||||||
if ask "Do you want to open the config.toml for customizations? [y/n]"; then
|
if ask "Do you want to open the config.toml for customizations? [y/n]"; then
|
||||||
nano config.toml
|
nano config.toml
|
||||||
git add config.toml && git -c user.name='rvmm' -c user.email='' commit -m config || :
|
|
||||||
fi
|
fi
|
||||||
if ! ask "Setup is done. Do you want to start building? [y/n]"; then
|
if ! ask "Setup is done. Do you want to start building? [y/n]"; then
|
||||||
exit 0
|
exit 0
|
||||||
|
2
utils.sh
2
utils.sh
@ -311,7 +311,7 @@ build_rv() {
|
|||||||
apkm_arch="armeabi-v7a"
|
apkm_arch="armeabi-v7a"
|
||||||
fi
|
fi
|
||||||
if ! dl_apkmirror "${args[apkmirror_dlurl]}" "$version" "$stock_apk" APK "$apkm_arch" "${args[dpi]}"; then
|
if ! dl_apkmirror "${args[apkmirror_dlurl]}" "$version" "$stock_apk" APK "$apkm_arch" "${args[dpi]}"; then
|
||||||
epr "ERROR: Could not find any release of '${app_name}' with version '${version}' and arch '${apkm_arch}' from APKMirror"
|
epr "ERROR: Could not find any release of '${app_name}' with version '${version}', arch '${apkm_arch}' and dpi '${args[dpi]}' from APKMirror"
|
||||||
return 0
|
return 0
|
||||||
fi
|
fi
|
||||||
elif [ "$dl_from" = uptodown ]; then
|
elif [ "$dl_from" = uptodown ]; then
|
||||||
|
Loading…
x
Reference in New Issue
Block a user