Skip to content

Commit

Permalink
chore: add about
Browse files Browse the repository at this point in the history
  • Loading branch information
amorphobia committed Sep 14, 2024
1 parent e04fdd6 commit 8a69fbf
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,15 @@ jobs:
cp Rime/${{ matrix.rime }} rime.dll
cp Icon/* Lib/
- name: Set Version
run: |
if [[ ${{ github.ref_name }} == refs/tags/v* ]]; then
$VER = ${{ github.ref_name }}
else
$VER = ${{ github.ref_name }}-$(git rev-parse --short ${{ github.sha }})
fi
sed -i 's/global\ RABBIT_VERSION\ :=\ "[\d\.]+"/global RABBIT_VERSION := '"$VER"'/' Lib/RabbitCommon.ahk
- name: Upload Rabbit ${{ matrix.target }}
uses: actions/upload-artifact@v4
with:
Expand Down
1 change: 1 addition & 0 deletions Lib/RabbitTrayMenu.ahk
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ SetupTrayMenu() {

A_TrayMenu.Add("仓库主页", (*) => Run("https://github.com/amorphobia/rabbit"))
A_TrayMenu.Add("参加讨论", (*) => Run("https://github.com/amorphobia/rabbit/discussions"))
A_TrayMenu.Add("关于", (*) => MsgBox(Format("由 AutoHotkey 实现的 Rime 输入法引擎前端`r`n版本:{}", RABBIT_VERSION), "玉兔毫输入法"))

A_TrayMenu.Add()

Expand Down

0 comments on commit 8a69fbf

Please sign in to comment.