Skip to content

compiler.internal.packageStandalone

compiler · scripts/+compiler/+internal/packageStandalone.m

: files = packageStandalone (opts, deps)

Package a Nexus standalone application tree for opts.

Copies scanned dependency .m files into opts.OutputDir, writes a launcher script named opts.ExecutableName that sets NEXUS_DEPLOYED=1 and invokes nexus-cli, and writes readme.txt. Returns a 2-by-1 cell of absolute paths to the launcher and readme (MATLAB R2026a Results.Files shape).

Full runtime-binary bundling is nexus#1689 (mcc-004). This packager is the Linux-oriented script launcher path used by mcc-002.