1
0
mirror of https://github.com/upscayl/upscayl.git synced 2024-12-18 10:26:04 +01:00
upscayl/main/getPlatform.js

20 lines
470 B
JavaScript
Raw Normal View History

2022-11-11 21:41:28 +01:00
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const os_1 = require("os");
const getPlatform = () => {
switch ((0, os_1.platform)()) {
case "aix":
case "freebsd":
case "linux":
case "openbsd":
case "android":
return "linux";
case "darwin":
case "sunos":
return "mac";
case "win32":
return "win";
}
};
2022-11-11 21:50:20 +01:00
exports.default = getPlatform;