mirror of
https://github.com/upscayl/upscayl.git
synced 2024-11-28 01:10:52 +01:00
22 lines
357 B
JavaScript
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 };
|