mirror of
https://github.com/upscayl/upscayl.git
synced 2024-11-12 01:40:53 +01:00
21 lines
504 B
JavaScript
21 lines
504 B
JavaScript
|
"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;
|