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

James Howe
James Howe 2020년 8월 17일
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에 대해 자세히 알아보기

질문:

2020년 8월 17일

댓글:

2020년 8월 17일

Community Treasure Hunt

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

Start Hunting!

Translated by