mirror of
https://github.com/revanced/Apktool.git
synced 2025-06-12 13:17:43 +02:00
fix: allow AaptManager to find new naming of aapt binaries
This commit is contained in:
@ -35,10 +35,13 @@ public class AaptManager {
|
||||
File aaptBinary;
|
||||
String aaptVersion = getAaptBinaryName(version);
|
||||
|
||||
if (! OSDetection.is64Bit() && ! OSDetection.isWindows()) {
|
||||
if (! OSDetection.is64Bit() && OSDetection.isMacOSX()) {
|
||||
throw new BrutException("32 bit OS detected. No 32 bit binaries available.");
|
||||
}
|
||||
|
||||
// Set the 64 bit flag
|
||||
aaptVersion += OSDetection.is64Bit() ? "_64" : "";
|
||||
|
||||
try {
|
||||
if (OSDetection.isMacOSX()) {
|
||||
aaptBinary = Jar.getResourceAsFile("/prebuilt/macosx/" + aaptVersion, AaptManager.class);
|
||||
|
Reference in New Issue
Block a user