deploytool not working in -batch mode

This works - Matlab opens, builds the installer, and exits:
matlab -nosplash -wait -r "deploytool -package myapp.prj; exit"
This does not - only the output file for_testing/spash.png is created:
matlab -batch "deploytool -package myapp.prj"
Tried with both R2019b and R2020a. The source file is an .mlapp package, if that makes a difference.
-----
After further testing, sometimes the first command also exits having only created for_testing/spash.png.
How to reliably build and package an app from the command line, without having to manually close Matlab afterwards?

1 个评论

Adding a sufficiently large pause - e.g. pause(30) allows it to finish. But this is not a very reliable solution.

请先登录,再进行评论。

回答(0 个)

类别

帮助中心File Exchange 中查找有关 Troubleshooting in MATLAB Compiler SDK 的更多信息

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by