From 3c8eade821fd653ab86cdc5d8d37a7d8c34ccd68 Mon Sep 17 00:00:00 2001 From: Cuynu Date: Mon, 21 Jul 2025 19:21:41 +0700 Subject: [PATCH] feat(patch)!: drop macOS support - MB development team are working on macOS, so it must be dropped to prevent another patch fixes on future. --- MBCPApp/mbcpapp.sh | 10 +++------- MBCPApp/patch.sh | 5 +++++ MBCPApp/pathmac.sh | 8 -------- README.md | 4 ++-- 4 files changed, 10 insertions(+), 17 deletions(-) delete mode 100755 MBCPApp/pathmac.sh diff --git a/MBCPApp/mbcpapp.sh b/MBCPApp/mbcpapp.sh index 1e2e02a..4fddd7c 100755 --- a/MBCPApp/mbcpapp.sh +++ b/MBCPApp/mbcpapp.sh @@ -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 diff --git a/MBCPApp/patch.sh b/MBCPApp/patch.sh index c10a8d2..1bf5d7e 100755 --- a/MBCPApp/patch.sh +++ b/MBCPApp/patch.sh @@ -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 : ' diff --git a/MBCPApp/pathmac.sh b/MBCPApp/pathmac.sh deleted file mode 100755 index 266d96e..0000000 --- a/MBCPApp/pathmac.sh +++ /dev/null @@ -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 - diff --git a/README.md b/README.md index f90886a..79b0317 100644 --- a/README.md +++ b/README.md @@ -63,12 +63,12 @@ Lightweight "open source" tool for patching MB Bank Flutter (Android) app for ro ## 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