Skip to content
This repository has been archived by the owner on Jul 18, 2023. It is now read-only.

Commit

Permalink
Merge pull request #168 from shrihanDev/main
Browse files Browse the repository at this point in the history
#163 but better 🤣
  • Loading branch information
reis authored Aug 6, 2022
2 parents 7563fe6 + 216c536 commit 200bbe5
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions utils/checkJDKandAapt2.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,20 +26,20 @@ module.exports = async function (ws) {
'revanced/aapt2.zip',
ws
);
await actualExec('unzip revanced/aapt2.zip');
await actualExec('unzip revanced/aapt2.zip -d revanced/');
switch (os.arch()) {
case 'arm64': {
await actualExec('cp arm64-v8a/aapt2 revanced/aapt2');
await actualExec('cp revanced/arm64-v8a/aapt2 revanced/aapt2');
await actualExec('chmod +x revanced/aapt2');
break;
}

case 'arm': {
await actualExec('cp armeabi-v7a/aapt2 revanced/aapt2');
await actualExec('cp revanced/armeabi-v7a/aapt2 revanced/aapt2');
await actualExec('chmod +x revanced/aapt2');
break;
}
}
await actualExec('rm -rf arm64-v8a armeabi-v7a x86 revanced/aapt2.zip');
await actualExec('rm -rf revanced/arm64-v8a revanced/armeabi-v7a revanced/x86 revanced/aapt2.zip');
}
};

0 comments on commit 200bbe5

Please sign in to comment.