mirror of
https://github.com/revanced/Apktool.git
synced 2024-12-04 10:02:55 +01:00
fix: allow AaptManager to find new naming of aapt binaries
This commit is contained in:
parent
ec0d58fbad
commit
61848cfa06
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user