Skip to content

Commit

Permalink
regression: en_dict.fscd not packaged
Browse files Browse the repository at this point in the history
  • Loading branch information
eagleoflqj committed Jan 11, 2025
1 parent cc38118 commit 8a9ec2f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .vscode/tasks.json
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
{
"type": "shell",
"label": "Pack",
"command": "npm pack",
"command": "npm pack && mv fcitx5-js-*.tgz fcitx5-js.tgz",
"group": {
"kind": "build"
}
Expand Down
8 changes: 4 additions & 4 deletions scripts/install-deps.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,15 @@ deps=(
)

EXTRACT_DIR=build/sysroot/usr
SPELL_DICT_DIR=$EXTRACT_DIR/share/fcitx5/spell
mkdir -p $SPELL_DICT_DIR
SPELL_DICT_DIR=build/destdir/usr/share/fcitx5/spell
mkdir -p $EXTRACT_DIR $SPELL_DICT_DIR

for dep in "${deps[@]}"; do
file=$dep.tar.bz2
[[ -f cache/$file ]] || wget -P cache https://github.com/fcitx-contrib/fcitx5-prebuilder/releases/download/js/$file
tar xjvf cache/$file -C $EXTRACT_DIR
tar xf cache/$file -C $EXTRACT_DIR
done

file=Fcitx5-arm64.tar.bz2
[[ -f cache/$file ]] || wget -P cache https://github.com/fcitx-contrib/fcitx5-macos/releases/download/latest/$file
tar xjvf cache/$file -C $SPELL_DICT_DIR --strip-components=5 Fcitx5.app/Contents/share/fcitx5/spell/en_dict.fscd
tar xf cache/$file -C $SPELL_DICT_DIR --strip-components=5 Fcitx5.app/Contents/share/fcitx5/spell/en_dict.fscd

0 comments on commit 8a9ec2f

Please sign in to comment.