From 89c04bf5059bd4cd2fb8ba954304826ef72b6138 Mon Sep 17 00:00:00 2001 From: hezhengyi Date: Fri, 23 Aug 2024 21:36:30 +0800 Subject: [PATCH 1/2] revert pr_304 Signed-off-by: hezhengyi --- .../flutter_tools/lib/src/ohos/hvigor.dart | 42 ++++++------------- 1 file changed, 12 insertions(+), 30 deletions(-) diff --git a/packages/flutter_tools/lib/src/ohos/hvigor.dart b/packages/flutter_tools/lib/src/ohos/hvigor.dart index d6a9f35270..bea955b09b 100644 --- a/packages/flutter_tools/lib/src/ohos/hvigor.dart +++ b/packages/flutter_tools/lib/src/ohos/hvigor.dart @@ -199,36 +199,18 @@ Future assembleHar( required String buildMode, String product = 'default', Logger? logger}) async { - final List command = []; - if (buildMode.compareTo('debug') == 0 || buildMode.compareTo('release') == 0) { - command.addAll([ - hvigorwPath, - '--mode', - 'module', - '-p', - 'module=$moduleName', - '-p', - 'product=$product', - '-p', - 'buildMode=$buildMode', - 'assembleHar', - '--no-daemon', - ]); - } else { - command.addAll([ - hvigorwPath, - '--mode', - 'module', - '-p', - 'module=$moduleName', - '-p', - 'product=$product', - '-p', - 'buildMode=debug', - 'assembleHar', - '--no-daemon', - ]); - } + final List command = [ + hvigorwPath, + // 'clean', + '--mode', + 'module', + '-p', + 'module=$moduleName', + '-p', + 'product=$product', + 'assembleHar', + '--no-daemon', + ]; return hvigorwTask(command, processUtils: processUtils, workPath: workPath, -- Gitee From dd5811465436b4a6091545fe76319fe547ae59b4 Mon Sep 17 00:00:00 2001 From: hezhengyi Date: Fri, 23 Aug 2024 21:37:18 +0800 Subject: [PATCH 2/2] =?UTF-8?q?=E6=9B=B4=E6=96=B0readme?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: hezhengyi --- README.en.md | 4 ++++ README.md | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/README.en.md b/README.en.md index 401cf1519c..e0297bda58 100644 --- a/README.en.md +++ b/README.en.md @@ -15,6 +15,10 @@ This repository is a compatible extension of Flutter SDK for the OpenHarmony pla Flutter Tools commands are currently supported on Linux, Mac and Windows. +* development limitations + + The Flutter project and dependent plugin projects in the Windows environment need to be on the same disk. + * Environment configuration **Please download the supporting development tool from [OpenHarmony SDK](https://developer.huawei.com/consumer/cn/develop)** diff --git a/README.md b/README.md index 3d2701d81d..afffdf3853 100644 --- a/README.md +++ b/README.md @@ -15,6 +15,10 @@ Flutter SDK 仓库 Flutter Tools指令目前已支持在Linux、Mac和Windows下使用。 +* 开发限制 + + Windows环境下flutter工程和依赖的插件工程需要在同一个磁盘。 + * 环境配置 **请从[鸿蒙SDK](https://developer.huawei.com/consumer/cn/develop)下载配套开发工具** *下列环境变量配置,类Unix系统(Linux、Mac),下可直接参照配置,Windows下环境变量配置请在‘编辑系统环境变量’中设置* -- Gitee