From e81f282bfbf65e2db774fdc69a716e2803f1d973 Mon Sep 17 00:00:00 2001 From: 0O0o0oOoO00 <11174151+0O0o0oOoO00@users.noreply.github.com> Date: Sun, 8 Jun 2025 11:53:14 +0800 Subject: [PATCH] opt: tool.bat --- blcrack/.env.example | 3 ++- blcrack/tool.bat | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/blcrack/.env.example b/blcrack/.env.example index 18db24d1f..818ef3cb8 100644 --- a/blcrack/.env.example +++ b/blcrack/.env.example @@ -4,4 +4,5 @@ GAME_LIB_PATH=/data/app/~~ts83BXGRmrLa3nH4jYaygg==/com.bilibili.azurlane-BzrEBkl UPLOAD_DIR=/data/tmp LINUX_CROSS_COMPILER_ROOT_DIR=D:/x86_64-pc-linux-gnu LINUX_CROSS_COMPILER_PREFIX=x86_64-pc-linux-gnu- -BIN_DIR=./bin/Debug-Android-x86 \ No newline at end of file +BIN_DIR=./bin +ARCH=x86 \ No newline at end of file diff --git a/blcrack/tool.bat b/blcrack/tool.bat index faaaab399..d99e8ce9a 100644 --- a/blcrack/tool.bat +++ b/blcrack/tool.bat @@ -12,9 +12,9 @@ if "%1" == "push" ( adb -s %SERIAL% shell "chmod +x %UPLOAD_DIR%/crack_logger" ) else if "%2" == "cracker" ( if "%3" == "release" ( - adb -s %SERIAL% push %BIN_DIR%/libcracker.so %GAME_LIB_PATH% + adb -s %SERIAL% push %BIN_DIR%/Release-Android-%ARCH%/libcracker.so %GAME_LIB_PATH% ) else ( - adb -s %SERIAL% push %BIN_DIR%/libcracker.so "%GAME_LIB_PATH%" + adb -s %SERIAL% push %BIN_DIR%/Debug-Android-%ARCH%/libcracker.so "%GAME_LIB_PATH%" ) ) else if "%2" == "patcher" ( adb -s %SERIAL% push %BIN_DIR%/patchelf %UPLOAD_DIR%