Install richdocumentscode depending on the architecture
Signed-off-by: Julius Härtl <jus@bitgrid.net>
This commit is contained in:
parent
498684efd6
commit
5340215871
|
@ -33,13 +33,19 @@ class HubBundle extends Bundle {
|
||||||
}
|
}
|
||||||
|
|
||||||
public function getAppIdentifiers() {
|
public function getAppIdentifiers() {
|
||||||
return [
|
$hubApps = [
|
||||||
'spreed',
|
'spreed',
|
||||||
'contacts',
|
'contacts',
|
||||||
'calendar',
|
'calendar',
|
||||||
'mail',
|
'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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue