1
0
mirror of https://github.com/upscayl/upscayl.git synced 2024-11-12 01:40:53 +01:00
upscayl/main/getPlatform.js

21 lines
504 B
JavaScript
Raw Normal View History

2022-11-11 21:41:28 +01:00
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.getPlatform = void 0;
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.getPlatform = getPlatform;