1
0
mirror of https://github.com/upscayl/upscayl.git synced 2024-11-24 07:30:19 +01:00
upscayl/main/getPlatform.js
2022-08-16 07:47:27 +05:30

22 lines
357 B
JavaScript

"use strict";
const { platform } = require("os");
const getPlatform = () => {
switch (platform()) {
case "aix":
case "freebsd":
case "linux":
case "openbsd":
case "android":
return "linux";
case "darwin":
case "sunos":
return "mac";
case "win32":
return "win";
}
};
module.exports = { getPlatform };