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:
Regular → Executable
+2
-1
@@ -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
@@ -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)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user