mirror of
https://github.com/upscayl/upscayl.git
synced 2024-12-18 10:26:04 +01:00
22 lines
346 B
TypeScript
22 lines
346 B
TypeScript
"use strict";
|
|
|
|
import { platform } from "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";
|
|
}
|
|
};
|
|
|
|
export default getPlatform;
|