HubBundle.php 744 B

1234567891011121314151617181920212223242526272829303132
  1. <?php
  2. declare(strict_types=1);
  3. /**
  4. * SPDX-FileCopyrightText: 2020 Nextcloud GmbH and Nextcloud contributors
  5. * SPDX-License-Identifier: AGPL-3.0-or-later
  6. */
  7. namespace OC\App\AppStore\Bundles;
  8. class HubBundle extends Bundle {
  9. public function getName() {
  10. return $this->l10n->t('Hub bundle');
  11. }
  12. public function getAppIdentifiers() {
  13. $hubApps = [
  14. 'spreed',
  15. 'contacts',
  16. 'calendar',
  17. 'mail',
  18. ];
  19. $architecture = function_exists('php_uname') ? php_uname('m') : null;
  20. if (isset($architecture) && PHP_OS_FAMILY === 'Linux' && in_array($architecture, ['x86_64', 'aarch64'])) {
  21. $hubApps[] = 'richdocuments';
  22. $hubApps[] = 'richdocumentscode' . ($architecture === 'aarch64' ? '_arm64' : '');
  23. }
  24. return $hubApps;
  25. }
  26. }