99 hangul
1010 jyutping
1111 keyman
12+ kkc
1213 lua
1314 m17n
1415 mozc
3536 hangul
3637 jyutping
3738 keyman
39+ kkc
3840 lua
3941 m17n
4042 mozc
@@ -55,7 +57,7 @@ extract_dep() {
5557 local plugin=$1
5658 local dep=$2
5759 local file=$dep$POSTFIX .tar.bz2
58- tar xjf $CACHE_DIR /$file -C $TARGET_DIR /$plugin /usr --exclude include --exclude lib
60+ tar xf $CACHE_DIR /$file -C $TARGET_DIR /$plugin /usr --exclude include --exclude lib
5961}
6062
6163package () {
@@ -79,7 +81,7 @@ package() {
7981
8082cache_plugin () {
8183 local file=$1
82- [[ -f $ROOT /cache/$file ]] || wget -P $ROOT /cache https://github.com/fcitx-contrib/fcitx5-plugins/releases/download/macos-latest/$file
84+ [[ -f $ROOT /cache/$file ]] || curl -LO --output-dir $ROOT /cache https://github.com/fcitx-contrib/fcitx5-plugins/releases/download/macos-latest/$file
8385}
8486
8587for plugin in " ${plugins[@]} " ; do
@@ -133,7 +135,7 @@ skk_share_dir=$TARGET_DIR/skk/usr/share
133135mkdir -p $skk_share_dir /skk
134136cp -r $TARGET_DIR /usr/share/libskk $skk_share_dir
135137skk_dict=SKK-JISYO.L.gz
136- [[ -f $ROOT /cache/$skk_dict ]] || wget -P $ROOT /cache https://skk-dev.github.io/dict/$skk_dict
138+ [[ -f $ROOT /cache/$skk_dict ]] || curl -LO --output-dir $ROOT /cache https://skk-dev.github.io/dict/$skk_dict
137139gunzip -fc $ROOT /cache/$skk_dict > $skk_share_dir /skk/SKK-JISYO.L
138140fi
139141fi
@@ -176,13 +178,26 @@ if [[ $PLATFORM != "windows" ]]; then
176178 fi
177179fi
178180
181+ # kkc
182+ if [[ $PLATFORM != " windows" ]]; then
183+ libkkc_data=libkkc-data.tar.bz2
184+ [[ -f $ROOT /cache/$libkkc_data ]] || curl -LO --output-dir $ROOT /cache https://github.com/fcitx-contrib/libkkc-data/releases/download/latest/$libkkc_data
185+ # Model files are under lib/
186+ if [[ $PLATFORM == " macos" ]]; then
187+ tar xf $ROOT /cache/$libkkc_data -C $TARGET_DIR /kkc/data
188+ else
189+ tar xf $ROOT /cache/$libkkc_data -C $TARGET_DIR /kkc/usr
190+ fi
191+ fi
192+
179193if [[ $PLATFORM != " windows" ]]; then
180194package anthy anthy
181195package chewing chewing
182196package chinese-addons pinyin
183197package hangul hangul
184198package jyutping jyutping
185199package keyman
200+ package kkc kkc
186201package lua
187202package m17n
188203package mozc mozc
0 commit comments