Skip to content

Commit cb3ebb7

Browse files
authored
Update install.ts to install system deps acc to self-hosted or cloud-hosted
1 parent dd92b9a commit cb3ebb7

1 file changed

Lines changed: 4 additions & 16 deletions

File tree

src/install.ts

Lines changed: 4 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -22,32 +22,20 @@ import { State } from './install-state';
2222
* true -> install system dependencies
2323
* false -> skip system dependencies
2424
*/
25-
export async function install(
26-
platform: string,
27-
architecture: string,
28-
release: string,
29-
products: string[],
30-
useCache: boolean,
31-
installSysDeps: boolean
32-
) {
25+
export async function install(platform: string, architecture: string, release: string, products: string[], useCache: boolean, installSystemDependencies: boolean) {
3326
const releaseInfo = await matlab.getReleaseInfo(release);
3427
if (releaseInfo.name < "r2020b") {
3528
return Promise.reject(Error(`Release '${releaseInfo.name}' is not supported. Use 'R2020b' or a later release.`));
3629
}
3730

38-
// -------------------------------
39-
// PRE-INSTALL DECISION & LOGGING
40-
// -------------------------------
41-
console.log(`installSysDep (resolved): ${installSysDeps}`);
42-
if (installSysDeps) {
43-
console.log("installs sys deps");
31+
// install system dependencies based on the resolved flag in index.ts
32+
if (installSystemDependencies) {
4433
await core.group("Preparing system for MATLAB", async () => {
4534
await matlab.installSystemDependencies(platform, architecture, releaseInfo.name);
4635
});
47-
} else {
48-
console.log("not installing sys deps");
4936
}
5037

38+
5139
await core.group("Setting up MATLAB", async () => {
5240
let matlabArch = architecture;
5341
if (platform === "darwin" && architecture === "arm64" && releaseInfo.name < "r2023b") {

0 commit comments

Comments
 (0)