1
1
mirror of https://github.com/KenanZhu/AutoLibrary.git synced 2026-06-17 23:13:03 +08:00

ci(batchs): 修复 *.sh 编译脚本中项目路径问题

This commit is contained in:
2026-02-11 20:17:04 +08:00
parent ce14be2555
commit 26a70cdceb
2 changed files with 4 additions and 2 deletions
Regular → Executable
+2 -1
View File
@@ -1,8 +1,9 @@
#!/bin/bash #!/bin/bash
SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)" 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] 检查翻译文件..." echo "[AutoLibrary compile] 检查翻译文件..."
if [ -d "translators" ]; then if [ -d "translators" ]; then
Regular → Executable
+2 -1
View File
@@ -1,8 +1,9 @@
#!/bin/bash #!/bin/bash
SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)" 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) file_count=$(ls *.ui 2>/dev/null | wc -l)