2023-04-08 16:51:09 +02:00
|
|
|
const os = require('os');
|
|
|
|
|
2023-02-17 05:56:36 +01:00
|
|
|
const frontendBuildDir = 'vite-dist';
|
|
|
|
|
2023-04-08 16:51:09 +02:00
|
|
|
const platform = os.platform();
|
|
|
|
const arch = os.arch();
|
|
|
|
|
2023-04-08 17:11:38 +02:00
|
|
|
// todo dedupe between renderer and main
|
2023-04-08 16:51:09 +02:00
|
|
|
const isWindows = platform === 'win32';
|
|
|
|
const isMac = platform === 'darwin';
|
2023-04-08 17:11:38 +02:00
|
|
|
const isLinux = platform === 'linux';
|
2023-04-08 16:51:09 +02:00
|
|
|
|
2023-02-17 05:56:36 +01:00
|
|
|
module.exports = {
|
|
|
|
frontendBuildDir,
|
2023-04-08 16:51:09 +02:00
|
|
|
isWindows,
|
|
|
|
isMac,
|
2023-04-08 17:11:38 +02:00
|
|
|
isLinux,
|
2023-04-08 16:51:09 +02:00
|
|
|
platform,
|
|
|
|
arch,
|
2023-02-17 05:56:36 +01:00
|
|
|
};
|