mirror of
https://github.com/MaaAssistantArknights/MaaAssistantArknights.git
synced 2026-07-16 09:50:40 +08:00
fix: 修复python3.11无法安装依赖的问题 & 调整部分模块
This commit is contained in:
@@ -1,30 +1,30 @@
|
||||
#!/bin/sh
|
||||
|
||||
|
||||
FILES_TO_CHECK=(
|
||||
"src/MaaWpfGui/Res/Localizations/zh-cn.xaml"
|
||||
"src/MaaWpfGui/Res/Localizations/zh-tw.xaml"
|
||||
"src/MaaWpfGui/Res/Localizations/en-us.xaml"
|
||||
"src/MaaWpfGui/Res/Localizations/ja-jp.xaml"
|
||||
"src/MaaWpfGui/Res/Localizations/ko-kr.xaml"
|
||||
)
|
||||
flag=0
|
||||
# 遍历数组
|
||||
cd ./tools/AutoLocalization
|
||||
for file in "${FILES_TO_CHECK[@]}"
|
||||
do
|
||||
echo examine file: $file
|
||||
# 检查文件是否已经被修改
|
||||
if git diff --name-only HEAD^ HEAD | grep --quiet "$file"
|
||||
then
|
||||
# 如果文件已经被修改,那么打上tag
|
||||
git tag -f "tag-autolocalization"
|
||||
break
|
||||
fi
|
||||
done
|
||||
if [ $? -ne 0 ]; then
|
||||
echo "Your program found an error in $FILE. Commit aborted."
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# 检查你的程序的退出状态
|
||||
##!/bin/sh
|
||||
#
|
||||
#
|
||||
#FILES_TO_CHECK=(
|
||||
# "src/MaaWpfGui/Res/Localizations/zh-cn.xaml"
|
||||
# "src/MaaWpfGui/Res/Localizations/zh-tw.xaml"
|
||||
# "src/MaaWpfGui/Res/Localizations/en-us.xaml"
|
||||
# "src/MaaWpfGui/Res/Localizations/ja-jp.xaml"
|
||||
# "src/MaaWpfGui/Res/Localizations/ko-kr.xaml"
|
||||
#)
|
||||
#flag=0
|
||||
## 遍历数组
|
||||
#cd ./tools/AutoLocalization
|
||||
#for file in "${FILES_TO_CHECK[@]}"
|
||||
#do
|
||||
# echo examine file: $file
|
||||
# # 检查文件是否已经被修改
|
||||
# if git diff --name-only HEAD^ HEAD | grep --quiet "$file"
|
||||
# then
|
||||
# # 如果文件已经被修改,那么打上tag
|
||||
# git tag -f "tag-autolocalization"
|
||||
# break
|
||||
# fi
|
||||
#done
|
||||
#if [ $? -ne 0 ]; then
|
||||
# echo "Your program found an error in $FILE. Commit aborted."
|
||||
# exit 1
|
||||
#fi
|
||||
#
|
||||
## 检查你的程序的退出状态
|
||||
|
||||
Reference in New Issue
Block a user