function excelAddinCompiler()
%EXCELADDINCOMPILER Package MATLAB Programs for deployment as Excel Add-ins

% Not supported in MATLAB Online
import matlab.internal.capability.Capability;
Capability.require([Capability.LocalClient])

if feature('webui')
message.publish(strcat('/matlab_compiler/app_gallery'), 'ExcelAddIn');
else
% Fall back to the old app in the classic desktop
libraryCompiler
end

end