Skip to content

Commit 5428097

Browse files
committed
librime 1.16.1 (#11)
1 parent 5d8cff9 commit 5428097

6 files changed

Lines changed: 32 additions & 19 deletions

File tree

.github/workflows/ci.yml

Lines changed: 14 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -11,30 +11,35 @@ on:
1111
jobs:
1212
build:
1313
runs-on: ubuntu-24.04
14-
env:
15-
EMSCRIPTEN_VERSION: '4.0.10'
1614
steps:
17-
- uses: actions/checkout@v4
15+
- uses: actions/checkout@v6
1816
with:
1917
submodules: recursive
2018

21-
- uses: actions/setup-node@v4
19+
- uses: actions/checkout@v6
2220
with:
23-
node-version: 22.x
21+
repository: emscripten-core/emsdk
22+
path: emsdk
23+
24+
- uses: actions/setup-node@v6
25+
with:
26+
node-version: 24.x
2427

2528
- name: Install dependencies
2629
run: |
2730
sudo apt install -y --no-install-recommends \
28-
ninja-build \
2931
gettext
3032
npm i -g pnpm
3133
pnpm i
3234
./scripts/install-deps.sh
3335
36+
- name: Get emscripten version
37+
run: |
38+
echo "EMSCRIPTEN_VERSION=$(cat fcitx5-js/.emscripten-version)" >> $GITHUB_ENV
39+
3440
- name: Install emsdk
41+
working-directory: emsdk
3542
run: |
36-
git clone https://github.com/emscripten-core/emsdk
37-
cd emsdk
3843
./emsdk install ${{ env.EMSCRIPTEN_VERSION }}
3944
./emsdk activate ${{ env.EMSCRIPTEN_VERSION }}
4045
@@ -68,7 +73,7 @@ jobs:
6873
mv dist rime-ice # Wrap a directory for artifact
6974
7075
- name: Upload artifact
71-
uses: actions/upload-artifact@v4
76+
uses: actions/upload-artifact@v6
7277
with:
7378
name: rime-ice
7479
path: |

demo/package.json

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,13 @@
99
"preview": "vite preview"
1010
},
1111
"devDependencies": {
12-
"@vitejs/plugin-vue": "^5.2.1",
13-
"@vue/tsconfig": "^0.7.0",
12+
"@vitejs/plugin-vue": "^6.0.3",
13+
"@vue/tsconfig": "^0.8.1",
1414
"fcitx5-rime": "file:../fcitx5-rime.tgz",
15-
"typescript": "~5.6.2",
16-
"vite": "^6.0.3",
17-
"vite-plugin-static-copy": "^2.2.0",
18-
"vue": "^3.5.13",
19-
"vue-tsc": "^2.1.10"
15+
"typescript": "~5.9.3",
16+
"vite": "^7.3.1",
17+
"vite-plugin-static-copy": "^3.1.6",
18+
"vue": "^3.5.27",
19+
"vue-tsc": "^3.2.4"
2020
}
2121
}

demo/src/App.vue

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
import { loadZip } from 'fcitx5-rime'
33
44
loadZip('./rime-ice.zip')
5+
.then(() => window.fcitx.setSystemInputMethodInUseCallback(() => alert('请禁用系统输入法'))) // 可选
56
</script>
67

78
<template>

demo/src/global.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
import type { FCITX } from 'fcitx5-rime'
2+
3+
declare global {
4+
interface Window {
5+
fcitx: FCITX
6+
}
7+
}

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "fcitx5-rime",
3-
"version": "0.3.1",
3+
"version": "0.4.0",
44
"description": "Fcitx5 Rime as a JavaScript library",
55
"type": "module",
66
"main": "dist/Fcitx5.js",
@@ -20,6 +20,6 @@
2020
},
2121
"license": "AGPL-3.0-or-later",
2222
"devDependencies": {
23-
"serve": "^14.2.4"
23+
"serve": "^14.2.5"
2424
}
2525
}

0 commit comments

Comments
 (0)