mirror of
https://github.com/CherryHQ/cherry-studio.git
synced 2025-12-24 18:50:56 +08:00
6 lines
289 B
TypeScript
6 lines
289 B
TypeScript
export const isMac = process.platform === 'darwin'
|
|
export const isWin = process.platform === 'win32'
|
|
export const isLinux = process.platform === 'linux'
|
|
export const isDev = process.env.NODE_ENV === 'development'
|
|
export const isPortable = isWin && 'PORTABLE_EXECUTABLE_DIR' in process.env
|