mirror of
https://github.com/sern-handler/gui
synced 2026-06-06 01:16:54 +00:00
13 lines
340 B
TypeScript
13 lines
340 B
TypeScript
export default function getPlatform() {
|
|
switch (process.platform) {
|
|
case 'linux':
|
|
return 'linux'
|
|
case 'win32':
|
|
return 'windows'
|
|
case 'darwin':
|
|
return 'macOS'
|
|
default:
|
|
// defaulting for linux (most probable command syntax)
|
|
return 'linux'
|
|
}
|
|
} |