Packaging apps that are dependent on custom toolboxes.

조회 수: 6 (최근 30일)
Adrian Cherry
Adrian Cherry 2022년 12월 15일
댓글: Adrian Cherry 2022년 12월 15일
I'm trying to wrap up an App in a package and it includes options that are dependant on a couple of custom toolboxes I have written.
When it analyses the app the packaging dialog appears to suck in all the functions from the custom toolboxes. This means that the app ends up being larger than necessary and is fixed in it's version. If I then update my custom toolbox then the packaged App will not see or get and bug fix or feature update as it has it's own older version of the function embedded within it. I don't want to be re-releasing the App everytime I update the custom toolbox.
The App packaging dialog has a section for identifying dependent toolboxes but this appears to be limited to Mathworks defined toolboxes.
Is there a way to package an App so that it does not include all the custom toolbox functions and just flags this custom toolbox as a dependancy?

답변 (1개)

Steven Lord
Steven Lord 2022년 12월 15일
Are you trying to deploy this app using MATLAB Compiler but want it to call MATLAB code from your custom toolbox without including that toolbox code in the MCR? That's not going to work.
From the documentation "MATLAB Runtime only works on MATLAB code that was encrypted when the deployable archive was built. Any function or process that dynamically generates new MATLAB code will not work against MATLAB Runtime."
  댓글 수: 1
Adrian Cherry
Adrian Cherry 2022년 12월 15일
No I'm not not deploying using the MATLAB compiler.
The users are on the same network and all have MATLAB installed. I've built an app using the appdesigner and it uses a couple of custom toolboxes we have also packaged.
I'm trying to get the App packaged so the users can easily install it in their App ribbon but still have it point to and use the custom toolbox. So the app will automatically pickup any bug fixes in the custom toolbox. At the moment it seems that the App package dialog just takes a snapshot of the custom toolbox at packaging time so it will have to be rebuilt and re-released everytime there is a change to the custom toolbox.

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Package and Share Apps에 대해 자세히 알아보기

제품

Community Treasure Hunt

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

Start Hunting!

Translated by