1
0
mirror of https://github.com/upscayl/upscayl.git synced 2024-11-30 18:24:27 +01:00
upscayl/main/getPlatform.js
2022-11-12 02:20:20 +05:30

20 lines
470 B
JavaScript

"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";
}
};
exports.default = getPlatform;