From d15803239dc323482e7e68feeee9c5469f5e7073 Mon Sep 17 00:00:00 2001 From: wuao Date: Mon, 9 Oct 2023 18:01:54 +0800 Subject: [PATCH] =?UTF-8?q?fix=20=E8=B7=AF=E5=BE=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/com/trubitpro/uploadapkplugin/task/BaseTask.java | 4 ++-- .../com/trubitpro/uploadapkplugin/task/BuildFlutterTask.java | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/app/src/main/java/com/trubitpro/uploadapkplugin/task/BaseTask.java b/app/src/main/java/com/trubitpro/uploadapkplugin/task/BaseTask.java index 9b74b42..8128941 100644 --- a/app/src/main/java/com/trubitpro/uploadapkplugin/task/BaseTask.java +++ b/app/src/main/java/com/trubitpro/uploadapkplugin/task/BaseTask.java @@ -128,12 +128,12 @@ public void onProgress(long currentBytes, long totalBytes) { List commend2 = new ArrayList<>(); commend2.add("bash"); commend2.add("-c"); - commend2.add("cd ../../mexo_flutter_module && git symbolic-ref --short HEAD"); + commend2.add("cd ../mexo_flutter_module && git symbolic-ref --short HEAD"); List commend3 = new ArrayList<>(); commend3.add("bash"); commend3.add("-c"); StringBuilder sb = new StringBuilder(); - sb.append("cd ../../mexo_flutter_module && git log --oneline --pretty=format:\"%an—>%s\" --no-merges --since=") + sb.append("cd ../mexo_flutter_module && git log --oneline --pretty=format:\"%an—>%s\" --no-merges --since=") .append(gitLogParams.gitLogHistoryDayTime).append("days --max-count=").append(gitLogParams.gitLogMaxCount); commend3.add(sb.toString()); try { diff --git a/app/src/main/java/com/trubitpro/uploadapkplugin/task/BuildFlutterTask.java b/app/src/main/java/com/trubitpro/uploadapkplugin/task/BuildFlutterTask.java index 7f09b40..3f30d98 100644 --- a/app/src/main/java/com/trubitpro/uploadapkplugin/task/BuildFlutterTask.java +++ b/app/src/main/java/com/trubitpro/uploadapkplugin/task/BuildFlutterTask.java @@ -29,7 +29,7 @@ public static void buildFlutter() { List commend = new ArrayList<>(); commend.add("bash"); commend.add("-c"); - commend.add("cd ../../mexo_flutter_module && pwd && flutter clean && flutter pub get && flutter build aar"); + commend.add("cd ../mexo_flutter_module && pwd && flutter clean && flutter pub get && flutter build aar"); try { ProcessUtils.exec(commend); } catch (Exception e) {