Skip to content

Commit

Permalink
Fix rime install
Browse files Browse the repository at this point in the history
  • Loading branch information
chuxubank committed Apr 4, 2024
1 parent f094688 commit fb3e8dd
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions cats/+rime.el
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,12 @@
(delete-directory rime-librime-root t))
(when (file-exists-p version-file)
(delete-file version-file t))
(shell-command (format "tar -xjf %s -C %s" file cat-rime-dir))
(+mkdir-p cat-rime-dir)
(if (zerop (shell-command (format "tar -xjf %s -C %s" file cat-rime-dir)))
(message "Latest librime for macOS has been extracted to %s" cat-rime-dir)
(error "Extract librime error"))
(unless keep-after-extract
(delete-file file))
(message "Latest librime for macOS has been extracted to %s" cat-rime-dir)))
(delete-file file))))

(defun +rime-librime-download-install ()
"Download and install the latest librime from GitHub"
Expand Down

0 comments on commit fb3e8dd

Please sign in to comment.