1
0
mirror of https://github.com/upscayl/upscayl.git synced 2025-02-01 12:18:04 +01:00
upscayl/electron/getPlatform.ts

22 lines
346 B
TypeScript
Raw Normal View History

2022-08-16 07:47:27 +05:30
"use strict";
2022-11-12 02:09:28 +05:30
import { platform } from "os";
2022-08-16 07:47:27 +05:30
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-12 02:17:00 +05:30
export default getPlatform;