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)