No more m-file app packaging...

22 visualizaciones (últimos 30 días)
William
William el 2 de Jun. de 2025
Comentada: Nathan el 5 de Jun. de 2025
Hi, is it correct that GUIs built programatically (as an m file using uicontrol) can no longer be converted to a mlappinstall file in 2025a? It seems like my GUI (PIVlab) can now only be shared on file exchange as a "pure toolbox" that will be installed in a completely "random" folder (/.../.../.../AppData/Roaming/.../.../.../.../...). None of my users (including me) will intuitively know how to start the GUI. In older releases, an App could be added to the "App badge", making it very easy for new Matlab users to start the GUI. But there doesn't seem to be a clean way to convert m-files to mlappisntall anymore. Previously an "App project" could be used together with the matlab.apputil.package could be used. Now Matlab tells me that "To package an app, create a MATLAB toolbox. "
I did that, but I cannot add an .m file as App.

Respuestas (1)

Nathan
Nathan el 3 de Jun. de 2025
Hi William,
In R2025a, the workflow to share your MATLAB apps was unified with toolbox packaging to consolidate the sharable file artifacts, focusing on the MLTBX file. When packaging a toolbox, there is an option to select individual files from within your toolbox to display in the MATLAB App Gallery. These app files can be any executable MATLAB code file (M, MLX, MLAPP, P, MEX). These selected app files will register with the App Gallery in the same manner that MLAPPINSTALL files previously installed.
Please refer to the Add Install Actions (Optional) section of the documentation here:
Additionally, if you have the app packaging PRJ file from a previous MATLAB release, you can use that as a starting point for packaging a toolbox in R2025a. Opening that file in R2025a will start an upgrade workflow and help bring your work into the new project-integrated workflow.
  4 comentarios
William
William el 4 de Jun. de 2025
Now I created another fresh project file for my toolbox, and it seems to work! Is there a way to add an icon for the App that is added?
Nathan
Nathan el 5 de Jun. de 2025
Hi William,
You are right that there is a bug in the documentation. I will log that accordingly. Glad to hear you were able to get the app working though!
Currently, we do not have a method for customizing the icon for an included app in an MLTBX file. This is a limitation of the current approach and we are considering working this in for a future release.

Iniciar sesión para comentar.

Categorías

Más información sobre Package and Share Apps en Help Center y File Exchange.

Productos


Versión

R2025a

Community Treasure Hunt

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

Start Hunting!

Translated by