feat(patch)!: drop macOS support

- MB development team are working on macOS, so it must be dropped to prevent another patch fixes on future.
This commit is contained in:
Cuynu 2025-07-21 19:21:41 +07:00
commit 3c8eade821
4 changed files with 10 additions and 17 deletions

View file

@ -35,8 +35,7 @@ fi
# Check if user trying to run under HyperV (Windows Subsystem For Linux)
# Remove this detection part to bypass WSL detection might lead project development to be STOPPED, You've warned !
if [ -f /proc/sys/fs/binfmt_misc/WSLInterop ]; then
echo "Detected WSL (Windows Subsystem for Linux) in current Linux environment !!"
echo "Warn : You won't be supported for any issues under WSL environment !!"
exit
fi
# Check if figlet exists or not
@ -66,11 +65,8 @@ fi
# Check if user runs on macOS environment
if [[ $OSTYPE == 'darwin'* ]]; then
echo "INFO : You have macOS environment :)"
# x86_64 Intel/AMD macOS
PATH="/usr/local/opt/gnu-sed/libexec/gnubin:$PATH"
# arm64 Apple Silicon macOS
PATH="/opt/homebrew/opt/gnu-sed/libexec/gnubin:$PATH"
echo "INFO : You have macOS environment, which is not supported !"
exit
fi
# Banner

View file

@ -13,6 +13,11 @@ echo "INFO : Trying to remove WSL detection code might make script not works pro
exit
fi
if [[ $OSTYPE == 'darwin'* ]]; then
echo "INFO : You have macOS environment, which is not supported !"
exit
fi
echo ---------------------------
echo Patch list for MBCPApp :
PS3='Select patch options : '

View file

@ -1,8 +0,0 @@
if [[ $(uname -m) == 'arm64' ]]; then
sudo ln -sfn /opt/homebrew/opt/openjdk/libexec/openjdk.jdk /Library/Java/JavaVirtualMachines/openjdk.jdk
fi
if [[ $(uname -m) == 'x86_64' ]]; then
sudo ln -sfn /usr/local/opt/openjdk/libexec/openjdk.jdk /Library/Java/JavaVirtualMachines/openjdk.jdk
fi

View file

@ -63,12 +63,12 @@ Lightweight "open source" tool for patching MB Bank Flutter (Android) app for ro
</details>
## Requirements
- Actual unix environment or any compatible Linux distro (Arch Linux based recommended)
- Any actual Linux environment (Arch Linux based recommended)
- WSL are not supported due to compiling issue & macOS support are dropped as MB development team are working with it.
- Little knowledge about `bash` commands
- `android-tools` for Arch/Fedora based and `android-sdk-platform-tools` for Debian based
- `git` installed
- `java` or `jdk-openjdk` installed
- For macOS, you need `openjdk` `gnu-sed` `wget` `android-platform-tools` installed with brew (both need to add to PATH first!)
## Usage
- Go to home directory, then clone repository first