1
0
mirror of https://github.com/upscayl/upscayl.git synced 2024-12-01 02:27:16 +01:00
upscayl/main/getPlatform.js

22 lines
357 B
JavaScript
Raw Normal View History

2022-08-16 04:17:27 +02:00
"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 };