(appName: string)
| 11 | .catch(() => false) |
| 12 | |
| 13 | export function checkAppExists(appName: string) { |
| 14 | if (process.platform === "win32") return true |
| 15 | if (process.platform === "linux") return true |
| 16 | return checkMacosApp(appName) |
| 17 | } |
| 18 | |
| 19 | export function resolveAppPath(appName: string) { |
| 20 | if (process.platform !== "win32") return appName |