Future<bool> hasXmake() => Process.run('xmake', ['--version']) .then((result) => result.exitCode == 0) .catchError((_) => false);