mirror of
https://github.com/LinoSchmidt/StickExporterTX.git
synced 2026-03-21 10:00:47 +01:00
New Top Bar design
This commit is contained in:
15
src/components/platform.ts
Normal file
15
src/components/platform.ts
Normal file
@@ -0,0 +1,15 @@
|
||||
const enum Platform {
|
||||
Windows = 'win32',
|
||||
Mac = 'darwin',
|
||||
Linux = 'linux'
|
||||
}
|
||||
|
||||
const platform = process.platform;
|
||||
|
||||
const platformFolder = platform === Platform.Windows ? 'windows' : platform === Platform.Mac ? 'darwin' : 'linux';
|
||||
|
||||
export {
|
||||
platform,
|
||||
Platform,
|
||||
platformFolder
|
||||
}
|
||||
Reference in New Issue
Block a user