mirror of
https://github.com/upscayl/upscayl.git
synced 2024-11-23 23:21:05 +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;
|