deleting a folder didnt work apparently

This commit is contained in:
meowster 2024-05-29 20:57:21 +02:00
parent 57d965a534
commit ffad62d935

View file

@ -100,27 +100,27 @@ const onKeyDown = [
decomp(); decomp();
modifyFunc( modifyFunc(
`.\\${base}\\smali\\classes\\tech\\rabbit\\r1launcher\\RLApp.smali`, `./${base}/smali/classes/tech/rabbit/r1launcher/RLApp.smali`,
getOSVersion getOSVersion
); );
modifyFunc( modifyFunc(
`.\\${base}\\smali\\classes\\tech\\rabbit\\r1launcher\\settings\\utils\\SystemControllerUtil.smali`, `./${base}/smali/classes/tech/rabbit/r1launcher/settings/utils/SystemControllerUtil.smali`,
getImei getImei
); );
modifyFunc(`.\\${base}\\smali\\classes\\AppConfig.smali`, getDeviceId); modifyFunc(`./${base}/smali/classes/AppConfig.smali`, getDeviceId);
modifyFunc( modifyFunc(
`.\\${base}\\smali\\classes\\tech\\rabbit\\r1launcher\\rabbit\\KeyEventHandler.smali`, `./${base}/smali/classes/tech/rabbit/r1launcher/rabbit/KeyEventHandler.smali`,
onKeyUp onKeyUp
); );
modifyFunc( modifyFunc(
`.\\${base}\\smali\\classes\\tech\\rabbit\\r1launcher\\rabbit\\KeyEventHandler.smali`, `./${base}/smali/classes/tech/rabbit/r1launcher/rabbit/KeyEventHandler.smali`,
onKeyDown onKeyDown
); );
replaceLib(".\\libbase.so", "libbase.so"); replaceLib("./libbase.so", "libbase.so");
build(); build();
@ -129,7 +129,7 @@ fs.renameSync(
`${decompName}_Patched.apk` `${decompName}_Patched.apk`
); );
fs.rmdirSync(`.\\${base}`); fs.rmdirSync(`./${base}`, { recursive: true, force: true });
fs.rmSync(`${base}_out.apk`); fs.rmSync(`${base}_out.apk`);
if (uploadToLitterBox) { if (uploadToLitterBox) {
@ -229,7 +229,7 @@ function modifyFunc(path, modifyWith) {
function replaceLib(newLibLocation, oldLib) { function replaceLib(newLibLocation, oldLib) {
fs.copyFileSync( fs.copyFileSync(
newLibLocation, newLibLocation,
`.\\${base}\\root\\lib\\arm64-v8a\\${oldLib}` `./${base}/root/lib/arm64-v8a/${oldLib}`
); );
} }