mirror of
https://github.com/revanced/Apktool.git
synced 2024-12-04 18:12:54 +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;
|
File aaptBinary;
|
||||||
String aaptVersion = getAaptBinaryName(version);
|
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.");
|
throw new BrutException("32 bit OS detected. No 32 bit binaries available.");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Set the 64 bit flag
|
||||||
|
aaptVersion += OSDetection.is64Bit() ? "_64" : "";
|
||||||
|
|
||||||
try {
|
try {
|
||||||
if (OSDetection.isMacOSX()) {
|
if (OSDetection.isMacOSX()) {
|
||||||
aaptBinary = Jar.getResourceAsFile("/prebuilt/macosx/" + aaptVersion, AaptManager.class);
|
aaptBinary = Jar.getResourceAsFile("/prebuilt/macosx/" + aaptVersion, AaptManager.class);
|
||||||
|
Loading…
Reference in New Issue
Block a user