A 添加系统icon

pull/586/head
vapao 2022-07-07 12:44:25 +08:00
parent 7878aa918f
commit e9f9521fa2
4 changed files with 5 additions and 1 deletions

View File

@ -19,7 +19,7 @@ import os
def check_os_type(os_name):
os_name = os_name.lower()
types = ('centos', 'coreos', 'debian', 'suse', 'ubuntu', 'windows', 'freebsd', 'tencent', 'alibaba')
types = ('centos', 'coreos', 'debian', 'suse', 'ubuntu', 'windows', 'freebsd', 'tencent', 'alibaba', 'fedora')
for t in types:
if t in os_name:
return t

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.8 KiB

View File

@ -8,6 +8,8 @@ import iconSuse from './suse.png';
import iconTencent from './tencent.png';
import iconUbuntu from './ubuntu.png';
import iconWindows from './windows.png';
import iconFedora from './fedora.png';
import iconLinux from './linux.png';
export default {
excel: iconExcel,
@ -19,5 +21,7 @@ export default {
suse: iconSuse,
tencent: iconTencent,
ubuntu: iconUbuntu,
fedora: iconFedora,
windows: iconWindows,
unknown: iconLinux,
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.2 KiB