(os: NodeJS.Platform)
| 320 | } |
| 321 | |
| 322 | function determineOS(os: NodeJS.Platform): OS { |
| 323 | switch (os) { |
| 324 | case 'darwin': |
| 325 | return OS.Mac; |
| 326 | case 'win32': |
| 327 | return OS.Windows; |
| 328 | case 'linux': |
| 329 | return OS.Linux; |
| 330 | } |
| 331 | |
| 332 | return OS.Unknown; |
| 333 | } |
| 334 | |
| 335 | async function determineXcodeWorkspaceDirAbs(nativeProjectDirAbs: string): Promise<string> { |
| 336 | return resolve(nativeProjectDirAbs, 'App.xcworkspace'); |