From 01f043478137a00b86d24b8ce3c033666509ac62 Mon Sep 17 00:00:00 2001 From: entr0pia <30486766+entr0pia@users.noreply.github.com> Date: Tue, 19 Apr 2022 17:10:12 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E9=94=99=E8=AF=AF=E5=88=A4?= =?UTF-8?q?=E5=AE=9A=E6=9C=AA=E5=AE=89=E8=A3=85Gboard=E7=9A=84bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- change.log | 4 ++++ customize.sh | 3 +-- module.prop | 2 +- update.json | 2 +- 4 files changed, 7 insertions(+), 4 deletions(-) diff --git a/change.log b/change.log index 0b1bb5d..6029257 100644 --- a/change.log +++ b/change.log @@ -1,3 +1,7 @@ +## v2.0.3 +1. 修复错误判定未安装Gboard的bug +2. 词库未变化, 可跳过更新 + ## v2.0.2 1. 迁移 repo 2. 词库未变化, 可跳过更新 diff --git a/customize.sh b/customize.sh index aa6b09a..d7e75f8 100644 --- a/customize.sh +++ b/customize.sh @@ -1,10 +1,9 @@ # 注意 这不是占位符!!这个代码的作用是将模块里的东西全部塞系统里,然后挂上默认权限 SKIPUNZIP=0 -uid=$(ls -n /data/data | grep "com.google.android.inputmethod.latin" | awk '{print $3}') +uid=$(dumpsys package com.google.android.inputmethod.latin | grep userId | sed '$d;s/[^0-9]//g') if [ -z "$uid" ]; then abort "请检查是否安装 Gboard" - abort "退出安装" fi if [ -z "$MODPATH" ]; then diff --git a/module.prop b/module.prop index acf46ed..dc662d4 100644 --- a/module.prop +++ b/module.prop @@ -1,6 +1,6 @@ id=gboard-dict-3 name=Gboard user_dict_3_3 词库 -version=v2.0.2 +version=v2.0.3 versionCode=20220318 author=entr0pia@GitHub description=用户词典 (user_dict_3_3), 支持简拼和双拼. 共58053个词条, 以《现代汉语词典》第五版为基础, 添加部分专业词汇. 根据手机性能不同, 新词库需要1分钟左右生效. 测试方法: “光·遇” diff --git a/update.json b/update.json index 39acb29..899997e 100644 --- a/update.json +++ b/update.json @@ -1,5 +1,5 @@ { - "version": "v2.0.2", + "version": "v2.0.3", "versionCode": "20220318", "zipUrl": "https://github.com/entr0pia/gboard_dict_3/releases/latest/download/gboard_dict_3.zip", "changelog": "https://raw.githubusercontent.com/entr0pia/gboard_dict_3/master/change.log"