mirror of https://github.com/openspug/spug
A 添加系统icon
parent
7878aa918f
commit
e9f9521fa2
|
@ -19,7 +19,7 @@ import os
|
||||||
|
|
||||||
def check_os_type(os_name):
|
def check_os_type(os_name):
|
||||||
os_name = os_name.lower()
|
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:
|
for t in types:
|
||||||
if t in os_name:
|
if t in os_name:
|
||||||
return t
|
return t
|
||||||
|
|
Binary file not shown.
After Width: | Height: | Size: 1.8 KiB |
|
@ -8,6 +8,8 @@ import iconSuse from './suse.png';
|
||||||
import iconTencent from './tencent.png';
|
import iconTencent from './tencent.png';
|
||||||
import iconUbuntu from './ubuntu.png';
|
import iconUbuntu from './ubuntu.png';
|
||||||
import iconWindows from './windows.png';
|
import iconWindows from './windows.png';
|
||||||
|
import iconFedora from './fedora.png';
|
||||||
|
import iconLinux from './linux.png';
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
excel: iconExcel,
|
excel: iconExcel,
|
||||||
|
@ -19,5 +21,7 @@ export default {
|
||||||
suse: iconSuse,
|
suse: iconSuse,
|
||||||
tencent: iconTencent,
|
tencent: iconTencent,
|
||||||
ubuntu: iconUbuntu,
|
ubuntu: iconUbuntu,
|
||||||
|
fedora: iconFedora,
|
||||||
windows: iconWindows,
|
windows: iconWindows,
|
||||||
|
unknown: iconLinux,
|
||||||
}
|
}
|
Binary file not shown.
After Width: | Height: | Size: 4.2 KiB |
Loading…
Reference in New Issue