From d3891e481e7bb01de8eb65234a005aed7b58bed0 Mon Sep 17 00:00:00 2001 From: Nick Fisher Date: Wed, 19 Jun 2024 16:48:36 +0800 Subject: [PATCH] fix log dir creation in build.dart --- thermion_dart/hook/build.dart | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/thermion_dart/hook/build.dart b/thermion_dart/hook/build.dart index 6f7ce0ca..c5a0b361 100644 --- a/thermion_dart/hook/build.dart +++ b/thermion_dart/hook/build.dart @@ -7,9 +7,9 @@ import 'package:native_toolchain_c/native_toolchain_c.dart'; void main(List args) async { await build(args, (config, output) async { var logDir = Directory( - "${config.packageRoot.toFilePath()}/.dart_tool/thermion_dart/log/"); + "${config.packageRoot.toFilePath()}.dart_tool/thermion_dart/log/"); if (!logDir.existsSync()) { - logDir.createSync(); + logDir.createSync(recursive: true); } var logFile = File(logDir.path + "/build.log");