Skip to content

Commit 8852ace

Browse files
committed
make sure chip architecture is well capture
1 parent a7f862f commit 8852ace

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/main/java/ai/nets/samj/install/SamEnvManagerAbstract.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,9 @@ public abstract class SamEnvManagerAbstract {
7777
/**
7878
* Default directory where micromamba is installed and where all the environments are created
7979
*/
80-
final static public String DEFAULT_DIR = new File("appose_x86_64").getAbsolutePath();
80+
final static public String DEFAULT_DIR = new File("appose_"
81+
+ ((!PlatformDetection.isMacOS() || !PlatformDetection.isUsingRosseta()) ? PlatformDetection.getArch()
82+
: PlatformDetection.ARCH_ARM64 )).getAbsolutePath();
8183

8284

8385
public abstract boolean checkEverythingInstalled();

0 commit comments

Comments
 (0)