Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Simplify packageToolbox by using ToolboxOptions #25

Open
michellehirsch opened this issue Nov 27, 2024 · 0 comments
Open

Simplify packageToolbox by using ToolboxOptions #25

michellehirsch opened this issue Nov 27, 2024 · 0 comments
Assignees

Comments

@michellehirsch
Copy link
Member

packageToolbox looks more complicated than it needs to be. Use ToolboxOptions to specify the location of the released MLTBX instead of trying to find it and move it:

opts = matlab.addons.toolbox.ToolboxOptions(tbxPackagingProjectFile);

% Change output file location to release folder, but keep output file name.
[~,filename] = fileparts(opts.OutputFile);
opts.OutputFile = fullfile(pwd,"release",filename+".mltbx");

matlab.addons.toolbox.packageToolbox(opts);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants