From 861ccb583204a771c83d986c221714218bc464e7 Mon Sep 17 00:00:00 2001 From: ZhanGSKen Date: Mon, 19 Jan 2026 18:00:33 +0800 Subject: [PATCH] =?UTF-8?q?=E7=A7=BB=E9=99=A4=E5=91=BD=E4=BB=A4=E8=A1=8C?= =?UTF-8?q?=E9=87=8C=E7=9A=84=E6=96=87=E4=BB=B6=E5=A4=B9=E5=88=9B=E5=BB=BA?= =?UTF-8?q?=E5=91=BD=E4=BB=A4=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- winboll/build.properties | 4 ++-- .../studio/winboll/unittest/TermuxEnvTestActivity.java | 7 ++++--- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/winboll/build.properties b/winboll/build.properties index 82d1350..f526490 100644 --- a/winboll/build.properties +++ b/winboll/build.properties @@ -1,8 +1,8 @@ #Created by .winboll/winboll_app_build.gradle -#Mon Jan 19 09:37:07 GMT 2026 +#Mon Jan 19 09:54:26 GMT 2026 stageCount=11 libraryProject= baseVersion=15.11 publishVersion=15.11.10 -buildCount=45 +buildCount=50 baseBetaVersion=15.11.11 diff --git a/winboll/src/main/java/cc/winboll/studio/winboll/unittest/TermuxEnvTestActivity.java b/winboll/src/main/java/cc/winboll/studio/winboll/unittest/TermuxEnvTestActivity.java index ad6667e..66f353f 100644 --- a/winboll/src/main/java/cc/winboll/studio/winboll/unittest/TermuxEnvTestActivity.java +++ b/winboll/src/main/java/cc/winboll/studio/winboll/unittest/TermuxEnvTestActivity.java @@ -170,8 +170,9 @@ public class TermuxEnvTestActivity extends BaseWinBoLLActivity { // 3. 构造命令(核心:用stdbuf禁用缓冲,实现实时输出) String targetCmd = ""; // 步骤1:进入项目目录(不存在则创建) - targetCmd += "cd " + projectPath + " || (mkdir -p " + projectPath + " && cd " + projectPath + ") && "; - // 步骤2:加载环境变量 + //targetCmd += "cd " + projectPath + " || (mkdir -p " + projectPath + " && cd " + projectPath + ") && "; + targetCmd += "cd " + projectPath + " && "; + // 步骤2:加载环境变量 targetCmd += "source ~/.bashrc && "; // 步骤3:显式配置PATH targetCmd += "export PATH=/data/data/com.termux/files/usr/bin:/data/data/com.termux/files/home/gradle/gradle-7.5.1/bin:$PATH && "; @@ -228,7 +229,7 @@ public class TermuxEnvTestActivity extends BaseWinBoLLActivity { // 3. 构造命令(核心:用stdbuf禁用缓冲,实现实时输出) String targetCmd = ""; // 步骤1:进入项目目录(不存在则创建) - targetCmd += "cd " + projectPath + " || (mkdir -p " + projectPath + " && cd " + projectPath + ") && "; + targetCmd += "cd " + projectPath + " && "; // 步骤2:加载环境变量 targetCmd += "source ~/.bashrc && "; // 步骤3:显式配置PATH