更新软件默认使用的字体
This commit is contained in:
@@ -6,6 +6,14 @@ export const isWin = process.platform == 'win32'
|
||||
export const isMac = process.platform == 'darwin'
|
||||
export const isProd = process.env.NODE_ENV == 'production'
|
||||
|
||||
export const getPlatform = (platform: NodeJS.Platform = process.platform) => {
|
||||
switch (platform) {
|
||||
case 'win32': return 'windows'
|
||||
case 'darwin': return 'mac'
|
||||
default: return 'linux'
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// https://stackoverflow.com/a/53387532
|
||||
export function compareVer(currentVer: string, targetVer: string): -1 | 0 | 1 {
|
||||
|
||||
Reference in New Issue
Block a user