Install richdocumentscode depending on the architecture

Signed-off-by: Julius Härtl <jus@bitgrid.net>
This commit is contained in:
Julius Härtl 2020-09-14 10:29:52 +02:00
parent 498684efd6
commit 5340215871
No known key found for this signature in database
GPG Key ID: 4C614C6ED2CDE6DF
1 changed files with 9 additions and 3 deletions

View File

@ -33,13 +33,19 @@ class HubBundle extends Bundle {
}
public function getAppIdentifiers() {
return [
$hubApps = [
'spreed',
'contacts',
'calendar',
'mail',
'richdocumentscode',
'richdocuments',
];
$architecture = php_uname('m');
if (PHP_OS_FAMILY === 'Linux' && in_array($architecture, ['x86_64', 'aarch64'])) {
$hubApps[] = 'richdocuments';
$hubApps[] = 'richdocumentscode' . ($architecture === 'aarch64' ? '_arm64' : '');
}
return $hubApps;
}
}