forked from iDvel/rime-ice
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Windows-使用 plum 安装后复制内容.sh
25 lines (20 loc) · 1.01 KB
/
Windows-使用 plum 安装后复制内容.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#!/usr/bin/env bash
echo "Running rime-install"
"$APPDATA/plum/rime-install" e71828/ice
echo "Finished rime-install"
echo "Copying custom.yaml files"
cp "$APPDATA"/plum/package/e71828/ice/default.custom.yaml "$APPDATA"/Rime/
cp "$APPDATA"/plum/package/e71828/ice/rime_ice.custom.yaml "$APPDATA"/Rime/
echo "Copying lua files"
cp "$APPDATA"/plum/package/e71828/ice/rime.lua "$APPDATA"/Rime/ice.rime.lua
touch "$APPDATA"/Rime/jidian.rime.lua
cat "$APPDATA"/Rime/ice.rime.lua "$APPDATA"/Rime/jidian.rime.lua > "$APPDATA"/Rime/rime.lua
echo "Creating and diffing lua files"
touch "$APPDATA/Rime/ice.rime.lua"
cat "$APPDATA/Rime/ice.rime.lua" "$APPDATA/Rime/jidian.rime.lua" > "$APPDATA/Rime/rime.lua"
echo "Copying ico and preview directories"
cp "$APPDATA"/plum/package/e71828/ice/cn_dicts "$APPDATA"/Rime/ -r
cp "$APPDATA"/plum/package/e71828/ice/en_dicts "$APPDATA"/Rime/ -r
cp "$APPDATA"/plum/package/e71828/ice/lua "$APPDATA"/Rime/ -r
cp "$APPDATA"/plum/package/e71828/ice/ice.ico "$APPDATA"/Rime/
echo "All tasks completed"