mirror of
https://github.com/KenanZhu/AutoLibrary.git
synced 2026-10-07 14:00:17 +08:00
ci(batchs): 修复 *.sh 编译脚本中项目路径问题
This commit is contained in:
1 parent
ce14be2555
commit
26a70cdceb
2 files changed
+4
-2
No files matched your search
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