From 89c4fdc02711b8d12f824b9fe8de3695ae83253c Mon Sep 17 00:00:00 2001 From: YuleBest Date: Wed, 4 Feb 2026 03:47:34 +0800 Subject: [PATCH] =?UTF-8?q?chore:=20=E5=88=A0=E9=99=A4=E6=B2=A1=E6=9C=89?= =?UTF-8?q?=E8=A2=AB=E4=BD=BF=E7=94=A8=E7=9A=84=E8=84=9A=E6=9C=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitignore | 4 +++- template/template/customize.sh | 1 + template/template/tools/customize.sh | 32 ---------------------------- 3 files changed, 4 insertions(+), 33 deletions(-) delete mode 100755 template/template/tools/customize.sh diff --git a/.gitignore b/.gitignore index 9b4ac5a..d0f7a74 100755 --- a/.gitignore +++ b/.gitignore @@ -2,4 +2,6 @@ /ttf/*.ttf /MODULE.zip /template/template.zip -/download/ \ No newline at end of file +/download/ +/shellcheck.sh +/shellcheck.txt \ No newline at end of file diff --git a/template/template/customize.sh b/template/template/customize.sh index 635fac2..7e44678 100755 --- a/template/template/customize.sh +++ b/template/template/customize.sh @@ -1,3 +1,4 @@ +# shellcheck disable=SC2148 # FontMM ColorOS 16 # 刷入脚本 SKIPUNZIP=0 diff --git a/template/template/tools/customize.sh b/template/template/tools/customize.sh deleted file mode 100755 index 635fac2..0000000 --- a/template/template/tools/customize.sh +++ /dev/null @@ -1,32 +0,0 @@ -# FontMM ColorOS 16 -# 刷入脚本 -SKIPUNZIP=0 - -FLASH_RENAMER() { - # 兜底字体 - if [ ! -f "$MODPATH/ttf/ch.ttf" ]; then - abort "缺少 ch.ttf,终止" - fi - - # 存在则用,不存在自动回退 ch.ttf - hans="$MODPATH/ttf/ch.ttf" - hant="$MODPATH/ttf/ch.ttf" - en="$MODPATH/ttf/ch.ttf" - - [ -f "$MODPATH/ttf/tc.ttf" ] && hant="$MODPATH/ttf/tc.ttf" - [ -f "$MODPATH/ttf/en.ttf" ] && en="$MODPATH/ttf/en.ttf" - - cp -v "$hant" "$MODPATH/system/fonts/SysSans-Hant-Regular.ttf" - cp -v "$hans" "$MODPATH/system/fonts/SysSans-Hans-Regular.ttf" - cp -v "$en" "$MODPATH/system/fonts/SysSans-En-Regular.ttf" - - cp -v "$hans" "$MODPATH/system/fonts/SysFont-Static-Regular.ttf" - cp -v "$hans" "$MODPATH/system/fonts/SysFont-Myanmar.ttf" - cp -v "$hant" "$MODPATH/system/fonts/SysFont-Hant-Regular.ttf" - cp -v "$hans" "$MODPATH/system/fonts/SysFont-Hans-Regular.ttf" - cp -v "$hans" "$MODPATH/system/fonts/SysFont-Regular.ttf" - - echo "重命名并复制完成" -} - -FLASH_RENAMER \ No newline at end of file