add deepin support for doctor

This commit is contained in:
crazywhalecc
2024-01-08 23:34:17 +08:00
committed by Jerry Ma
parent 8d2f6baaa2
commit f9e7af1c9a
3 changed files with 24 additions and 5 deletions

View File

@@ -209,4 +209,21 @@ class SystemUtil
}
return $ret;
}
/**
* Get fully-supported linux distros.
*
* @return string[] List of supported Linux distro name for doctor
*/
public static function getSupportedDistros(): array
{
return [
// debian-like
'debian', 'ubuntu', 'Deepin',
// rhel-like
'redhat',
// alpine
'alpine',
];
}
}