Skip to content

Commit

Permalink
Update doc for installation on MacOS
Browse files Browse the repository at this point in the history
  • Loading branch information
Claude-Ray authored and DogLooksGood committed Feb 7, 2021
1 parent a4e6dc1 commit edcb627
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 9 deletions.
7 changes: 4 additions & 3 deletions INSTALLATION.org
Original file line number Diff line number Diff line change
Expand Up @@ -47,11 +47,12 @@
*** MacOS
1. 先安装[[https://rime.im/download/][鼠须管]],里面有输入法方案。
2. 然后直接下载编译好的librime的Release版本。
3. 如果后续安装了鼠须管的升级版本,请查阅它的[[https://github.com/rime/squirrel/blob/master/CHANGELOG.md][更新日志]],将librime也升级到相匹配的版本。

#+BEGIN_SRC bash
curl -OJ https://github.com/rime/librime/releases/download/1.5.3/rime-1.5.3-osx.zip
unzip rime-1.5.3-osx.zip -d ~/.emacs.d/librime
rm -rf rime-1.5.3-osx.zip
curl -L -O https://github.com/rime/librime/releases/download/1.7.1/rime-1.7.1-osx.zip
unzip rime-1.7.1-osx.zip -d ~/.emacs.d/librime
rm -rf rime-1.7.1-osx.zip
#+END_SRC

如果MacOS Gatekeeper阻止第三方软件运行,可以暂时关闭它:
Expand Down
7 changes: 4 additions & 3 deletions INSTALLATION_EN.org
Original file line number Diff line number Diff line change
Expand Up @@ -47,11 +47,12 @@
*** MacOS
1. First of all, make sure you have installed [[https://rime.im/download/][Squirrel]], the MacOS Rime client.
2. Then download the librime release.
3. If you upgrade Squirrel in future, please check its [[https://github.com/rime/squirrel/blob/master/CHANGELOG.md][CHANGELOG]] and upgrade librime to a matching version.

#+BEGIN_SRC bash
curl -L -O https://github.com/rime/librime/releases/download/1.5.3/rime-1.5.3-osx.zip
unzip rime-1.5.3-osx.zip -d ~/.emacs.d/librime
rm -rf rime-1.5.3-osx.zip
curl -L -O https://github.com/rime/librime/releases/download/1.7.1/rime-1.7.1-osx.zip
unzip rime-1.7.1-osx.zip -d ~/.emacs.d/librime
rm -rf rime-1.7.1-osx.zip
#+END_SRC

If the MacOS Gatekeeper blocks the librime executable, you can disable it temporarily with:
Expand Down
6 changes: 3 additions & 3 deletions rime.el
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,9 @@
;; Download librime release.
;;
;; #+BEGIN_SRC bash
;; wget https://github.com/rime/librime/releases/download/1.5.3/rime-1.5.3-osx.zip
;; unzip rime-1.5.3-osx.zip -d ~/.emacs.d/librime
;; rm -rf rime-1.5.3-osx.zip
;; wget https://github.com/rime/librime/releases/download/1.7.1/rime-1.7.1-osx.zip
;; unzip rime-1.7.1-osx.zip -d ~/.emacs.d/librime
;; rm -rf rime-1.7.1-osx.zip
;; #+END_SRC
;;
;; Emacs configuration:
Expand Down

0 comments on commit edcb627

Please sign in to comment.