diff options
Diffstat (limited to 'powerword.install')
-rw-r--r-- | powerword.install | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/powerword.install b/powerword.install new file mode 100644 index 000000000000..ae9540507b88 --- /dev/null +++ b/powerword.install @@ -0,0 +1,20 @@ +post_install() { + function byellow(){ + echo -e "\033[33m\033[01m$1 \033[0m" + } + if [ "$LANG" = "zh_CN.UTF-8" ]; then + byellow "如果你以前没有手动将数据文件复制到用户目录," + byellow "请使用以下代码复制数据,否则输入法无法正常运行。 \n" + else + byellow "If you didn't manually copy data files to your user home before," + byellow "just do it by the following code, or it won't work. \n" + fi + byellow "mkdir -p ~/.config/com.kingsoft.powerword" + byellow "cp -r /tmp/resources ~/.config/com.kingsoft.powerword" + printf "\n" +} +pre_upgrade() { + rm -rf /opt/apps/com.kingsoft.powerword #for 1.2-2 only + post_install +} + |