Skip to content

Commit b3511ad

Browse files
authored
fix: update lrelease executable search paths for Qt5/Qt6 (#27) (#22)
Add specific search paths for lrelease in Qt5 and Qt6 directories before falling back to default system path. Log: update lrelease executable search paths for Qt5/Qt6
1 parent 7691e09 commit b3511ad

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

src/translate_generation.sh

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,15 @@
44

55
ts_list=(`ls ../translations/*.ts`)
66

7+
# 优先使用Qt6 lrelease工具
8+
if [ -f "/usr/lib/qt6/bin/lrelease" ]; then
9+
lrelease="/usr/lib/qt6/bin/lrelease"
10+
elif [ -f "/usr/lib/qt5/bin/lrelease" ]; then
11+
lrelease="/usr/lib/qt5/bin/lrelease"
12+
else
13+
lrelease="lrelease"
14+
fi
15+
716
for ts in "${ts_list[@]}"
817
do
918
printf "\nprocess ${ts}\n"

0 commit comments

Comments
 (0)