From 26a70cdceb475d852eaa194e13d5a523cf04efa4 Mon Sep 17 00:00:00 2001 From: KenanZhu <3471685733@qq.com> Date: Wed, 11 Feb 2026 20:17:04 +0800 Subject: [PATCH] =?UTF-8?q?ci(batchs):=20=E4=BF=AE=E5=A4=8D=20*.sh=20?= =?UTF-8?q?=E7=BC=96=E8=AF=91=E8=84=9A=E6=9C=AC=E4=B8=AD=E9=A1=B9=E7=9B=AE?= =?UTF-8?q?=E8=B7=AF=E5=BE=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- batchs/compile_rc.sh | 3 ++- batchs/compile_ui.sh | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) mode change 100644 => 100755 batchs/compile_rc.sh mode change 100644 => 100755 batchs/compile_ui.sh diff --git a/batchs/compile_rc.sh b/batchs/compile_rc.sh old mode 100644 new mode 100755 index e8a7770..c983425 --- a/batchs/compile_rc.sh +++ b/batchs/compile_rc.sh @@ -1,8 +1,9 @@ #!/bin/bash SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)" +PRJECT_DIR="$SCRIPT_DIR/.." -cd "$SCRIPT_DIR/src/gui/resources" +cd "$PRJECT_DIR/src/gui/resources" echo "[AutoLibrary compile] 检查翻译文件..." if [ -d "translators" ]; then diff --git a/batchs/compile_ui.sh b/batchs/compile_ui.sh old mode 100644 new mode 100755 index a9d392b..fd5c70f --- a/batchs/compile_ui.sh +++ b/batchs/compile_ui.sh @@ -1,8 +1,9 @@ #!/bin/bash SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)" +PRJECT_DIR="$SCRIPT_DIR/.." -cd "$SCRIPT_DIR/src/gui/resources/ui" +cd "$PRJECT_DIR/src/gui/resources/ui" file_count=$(ls *.ui 2>/dev/null | wc -l)