function productionServerArchiveCompiler()
    %PRODUCTIONSERVERARCHIVECOMPILER Package MATLAB Programs for deployment as code archives

    if ~matlab.internal.capability.Capability.isSupported(matlab.internal.capability.Capability.LocalClient) || feature('webui')
        % JSD or MO
        message.publish(strcat('/matlab_compiler/app_gallery'), 'ProductionServerArchive');
    else
        % Fall back to the old app in the classic desktop
        productionServerCompiler
    end
end
