import * as core from "@actions/core" ; import properties from "./properties.json" ; import * as script from "./script" ; import * as ematlab from "./ematlab" ; export default install ; param platform param release export async function install ( platform , release ) { if ( platform === "linux" ) { await core . group ( "Preparing system for MATLAB" , ( ) => script . downloadAndRunScript ( platform , properties . matlabDepsUrl , [ release ] ) ) ; } await core . group ( "Setting up MATLAB" , ( ) => script . downloadAndRunScript ( platform , properties . ephemeralInstallerUrl , [ "--release" , release , ] ) . then ( ematlab . addToPath ) ) ; return ; }