1
0
mirror of https://github.com/mifi/lossless-cut.git synced 2024-11-26 04:02:51 +01:00
lossless-cut/public/util.js

21 lines
375 B
JavaScript
Raw Normal View History

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