v0.3.0 版本新增特性
ruyi news
# 新闻
ruyi device
# 板卡镜像刷写
安装 v0.3.0
v0.3.0 版本的稳定二进制为 0.3.0 。
在 amd64 架构环境安装:
$ wget https://mirror.iscas.ac.cn/ruyisdk/ruyi/releases/0.3.0/ruyi.amd64
$ chmod +x ./ruyi.amd64
$ sudo cp ./ruyi.amd64 /usr/local/bin/ruyi
在 riscv64 架构环境安装:
$ wget https://mirror.iscas.ac.cn/ruyisdk/ruyi/releases/0.3.0/ruyi.riscv64
$ chmod +x ./ruyi.riscv64
$ sudo cp ./ruyi.riscv64 /usr/local/bin/ruyi
检查安装版本:
$ ruyi version
Ruyi 0.3.0
Copyright (C) 2023 Institute of Software, Chinese Academy of Sciences (ISCAS).
All rights reserved.
License: Apache-2.0 <https://www.apache.org/licenses/LICENSE-2.0>
RUYI 新闻
从 0.3.0 版本开始新增新闻功能, ruyi update
命令将默认显示未读新闻条目:
$ ruyi update
There are 2 new news item(s):
No. ID Title
───────────────────────────────────────────────────────────────
1 2024-01-14-ruyi-news RuyiSDK 支持展示新闻了
2 2024-01-15-new-board-images 新增板卡支持 (2024-01-15)
You can read them with ruyi news read.
新闻的阅读状态将保存在 news.read.txt
文件中。该文件默认存放在 ~/.local/state/ruyi
目录下,该目录在 $XDG_STATE_HOME
变量被设置时为 "$XDG_STATE_HOME"/ruyi
。
使用 ruyi list
列出所有新闻:
$ ruyi news list
News items:
No. ID Title
───────────────────────────────────────────────────────────────
1 2024-01-14-ruyi-news RuyiSDK 支持展示新闻了
2 2024-01-15-new-board-images 新增板卡支持 (2024-01-15)