更新软件默认使用的字体

This commit is contained in:
lyswhut
2024-11-26 18:03:52 +08:00
parent 7ebfd43f65
commit 4e1510c840
16 changed files with 140 additions and 23 deletions
+8
View File
@@ -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 {