1
0
mirror of https://github.com/upscayl/upscayl.git synced 2024-11-24 07:30:19 +01:00
upscayl/electron/getPlatform.ts

22 lines
346 B
TypeScript
Raw Normal View History

2022-08-16 04:17:27 +02:00
"use strict";
2022-11-11 21:39:28 +01:00
import { platform } from "os";
2022-08-16 04:17:27 +02:00
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";
}
};
2022-11-11 21:47:00 +01:00
export default getPlatform;