diff --git a/matlab-plugin-agent/pom.xml b/matlab-plugin-agent/pom.xml
index d2b2128..4146e3b 100644
--- a/matlab-plugin-agent/pom.xml
+++ b/matlab-plugin-agent/pom.xml
@@ -78,7 +78,7 @@
wget
- https://ssd.mathworks.com/supportfiles/ci/run-matlab-command/v1/glnxa64/run-matlab-command
+ https://ssd.mathworks.com/supportfiles/ci/run-matlab-command/v2/glnxa64/run-matlab-command
false
true
true
@@ -86,13 +86,27 @@
- get-matlab-runner-mac
+ get-matlab-runner-maca
validate
wget
- https://ssd.mathworks.com/supportfiles/ci/run-matlab-command/v1/maci64/run-matlab-command
+ https://ssd.mathworks.com/supportfiles/ci/run-matlab-command/v2/maca64/run-matlab-command
+ false
+ true
+ true
+ ${basedir}/src/main/resources/maca64
+
+
+
+ get-matlab-runner-maci
+ validate
+
+ wget
+
+
+ https://ssd.mathworks.com/supportfiles/ci/run-matlab-command/v2/maci64/run-matlab-command
false
true
true
@@ -106,7 +120,7 @@
wget
- https://ssd.mathworks.com/supportfiles/ci/run-matlab-command/v1/win64/run-matlab-command.exe
+ https://ssd.mathworks.com/supportfiles/ci/run-matlab-command/v2/win64/run-matlab-command.exe
false
true
true
diff --git a/matlab-plugin-agent/src/main/java/com/mathworks/ci/MatlabCommandRunner.java b/matlab-plugin-agent/src/main/java/com/mathworks/ci/MatlabCommandRunner.java
index 120f643..8b47908 100644
--- a/matlab-plugin-agent/src/main/java/com/mathworks/ci/MatlabCommandRunner.java
+++ b/matlab-plugin-agent/src/main/java/com/mathworks/ci/MatlabCommandRunner.java
@@ -95,7 +95,11 @@ private String copyExecutable(BuildRunnerContext runnerContext) throws IOExcepti
executable = runnerExe.getPath();
- copyFileToWorkspace(MatlabConstants.RUN_EXE_MAC, new File(runnerExe.getPath()));
+ if (System.getProperty("os.arch").equals("aarch64")) {
+ copyFileToWorkspace(MatlabConstants.RUN_EXE_MACA, new File(runnerExe.getPath()));
+ } else {
+ copyFileToWorkspace(MatlabConstants.RUN_EXE_MACI, new File(runnerExe.getPath()));
+ }
} else {
final File runnerExe = new File(this.tempDirectory, "run-matlab-command");
diff --git a/matlab-plugin-common/src/main/java/com/mathworks/ci/MatlabConstants.java b/matlab-plugin-common/src/main/java/com/mathworks/ci/MatlabConstants.java
index e7940c6..a9286e0 100644
--- a/matlab-plugin-common/src/main/java/com/mathworks/ci/MatlabConstants.java
+++ b/matlab-plugin-common/src/main/java/com/mathworks/ci/MatlabConstants.java
@@ -31,7 +31,8 @@ public interface MatlabConstants {
String TEMP_MATLAB_FOLDER_NAME = ".matlab";
// Matlab Runner files
static final String RUN_EXE_WIN = "win64/run-matlab-command.exe";
- static final String RUN_EXE_MAC = "maci64/run-matlab-command";
+ static final String RUN_EXE_MACA = "maca64/run-matlab-command";
+ static final String RUN_EXE_MACI = "maci64/run-matlab-command";
static final String RUN_EXE_LINUX = "glnxa64/run-matlab-command";
static final String MATLAB_SCRIPT_GENERATOR = "matlab-script-generator.zip";
//Test runner file prefix