setup method
Implementation
Future setup() async {
final fastlane = await which('fastlane');
if (fastlane == null) {
logger.log('fastlane未安装', status: LogStatus.error);
exit(2);
}
logger.log('正在初始化Fastlane配置');
if (!await fastlaneFile(root).exists()) {
await fastlaneFile(root).create(recursive: true);
}
await fastlaneFile(root).writeAsString(fastlaneContent);
logger.log('初始化Fastlane配置完成', status: LogStatus.success);
}