(command: string, args: string[], options: ExecutionOptions)
| 62 | } |
| 63 | |
| 64 | override exec(command: string, args: string[], options: ExecutionOptions) { |
| 65 | if (process.platform === 'linux' || process.platform === 'darwin') { |
| 66 | const wine = this.env.ceProps<string>('wine'); |
| 67 | |
| 68 | args = args.slice(0); |
| 69 | if (command.toLowerCase().endsWith('.exe')) { |
| 70 | args.unshift(command); |
| 71 | command = wine; |
| 72 | } |
| 73 | } |
| 74 | |
| 75 | return super.exec(command, args, options); |
| 76 | } |
| 77 | |
| 78 | override getExecutableFilename(dirPath: string) { |
| 79 | return path.join(dirPath, 'prog.exe'); |
no outgoing calls
no test coverage detected