{"id":31790731,"url":"https://github.com/mintimate/oh-my-rime-cli","last_synced_at":"2025-10-10T16:26:56.569Z","repository":{"id":305434821,"uuid":"1022872908","full_name":"Mintimate/oh-my-rime-cli","owner":"Mintimate","description":"oh-my-rime-cli 是一个用于 Rime 输入法更新和管理薄荷配置的命令行工具，支持多平台（Windows、macOS、Linux）🖥️，方便用户快速操作和定制 Rime 输入法环境✨","archived":false,"fork":false,"pushed_at":"2025-08-16T05:11:07.000Z","size":851,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-08-16T05:36:02.547Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Mintimate.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-07-20T03:02:50.000Z","updated_at":"2025-08-16T05:05:18.000Z","dependencies_parsed_at":null,"dependency_job_id":"7af36603-4879-45e7-9d3a-c8e6638524a3","html_url":"https://github.com/Mintimate/oh-my-rime-cli","commit_stats":null,"previous_names":["mintimate/oh-my-rime-cli"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/Mintimate/oh-my-rime-cli","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Mintimate%2Foh-my-rime-cli","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Mintimate%2Foh-my-rime-cli/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Mintimate%2Foh-my-rime-cli/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Mintimate%2Foh-my-rime-cli/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Mintimate","download_url":"https://codeload.github.com/Mintimate/oh-my-rime-cli/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Mintimate%2Foh-my-rime-cli/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279004693,"owners_count":26083748,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-10T02:00:06.843Z","response_time":62,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-10-10T16:26:51.297Z","updated_at":"2025-10-10T16:26:56.558Z","avatar_url":"https://github.com/Mintimate.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# oh-my-rime-cli\n\nRime 的 [Oh-my-rime](https://github.com/Mintimate/oh-my-rime) 配置自动更新与管理命令行工具，支持 Windows、Linux、macOS 多平台。\n\n![使用 Demo](./assets/img/usingApp.webp)\n\n## 功能简介\n- 一键下载和更新 Rime 主方案、模型、词库\n- 自动检测操作系统，智能选择配置目录\n- Windows 下支持注册表自动查找 Rime 用户目录\n- 交互式美观菜单(支持命令行版本和 GUI界面)，支持多种输入法环境选择\n\n```mermaid\nflowchart TD\n    A[🌟 启动程序 \u003cbr/\u003e CLI 版本使用终端\u003cbr/\u003eGUI 进行安装双击即可] --\u003e B[🖥️ 检测操作系统]\n    B --支持的操作系统--\u003e C[📋 显示主菜单]\n    B --不支持/检测失败--\u003e I\n    \n    C --\u003e D{\"✨用户选择\"}\n    D --\u003e|① 更新方案| E[💼 下载薄荷方案包]\n    D --\u003e|② 更新模型| F[🧠 下载万象模型]\n    D --\u003e|③ 更新词库| G[📚 下载薄荷方案包\u003cbr/\u003e提取词库]\n    D --\u003e|④ 自定义| H[🔗 粘贴配置链接]\n    D --\u003e|⏹️ 退出| I[👋 结束程序]\n    \n    E --\u003e J[📂 选择输入法目录\u003cbr/\u003e「Linux 和 macOS 需要」]\n    F --\u003e J\n    G --\u003e J\n    H --\u003e J\n    \n    J --\u003e K{🛠️ 更新类型}\n    K --\u003e|方案更新| L[📤 解压\u0026替换方案包]\n    K --\u003e|模型替换| M[💾 替换模型文件]\n    K --\u003e|词库更新| N[🔄 更新词库]\n    K --\u003e|自定义| O{🔍 文件类型}\n    \n    O --\u003e|📦 ZIP文件| L\n    O --\u003e|🧾 模型文件| M\n    \n    L --\u003e P[✅ 更新成功！]\n    M --\u003e P\n    N --\u003e P\n    \n    P --\u003e C\n\n    style A fill:#7E57C2,stroke:#5E35B1,color:white,stroke-width:2px,stroke-dasharray:5\n    style I fill:#EF5350,stroke:#D32F2F,color:white,stroke-width:2px\n    style C fill:#42A5F5,stroke:#1976D2,color:white\n    style D fill:#FFCA28,stroke:#FFA000,color:black,stroke-width:2px\n    style E fill:#26A69A,stroke:#00897B\n    style F fill:#5C6BC0,stroke:#3949AB\n    style G fill:#29B6F6,stroke:#039BE5\n    style H fill:#FF7043,stroke:#F4511E\n    style J fill:#AB47BC,stroke:#8E24AA,color:white\n    style K fill:#FFEE58,stroke:#FDD835,color:black\n    style L fill:#66BB6A,stroke:#43A047,color:white\n    style M fill:#5C6BC0,stroke:#3949AB,color:white\n    style N fill:#29B6F6,stroke:#039BE5,color:white\n    style O fill:#FFA726,stroke:#FB8C00,color:black\n    style P fill:#66BB6A,stroke:#43A047,color:white,stroke-width:2px\n    linkStyle default stroke:#90A4AE,stroke-width:2px\n```\n\n## 依赖说明\n- Go 1.24 及以上\n- Windows 平台需支持 `golang.org/x/sys/windows/registry` 包\n\n## 下载与安装\n\n### 预编译版本下载\n\n您可以在 [Releases](https://github.com/Mintimate/oh-my-rime-cli/releases) 页面下载预编译版本：\n\n- **GUI 版本**：\n  - macOS：下载 `.dmg` 文件\n  - Windows：下载 `.exe` 安装包\n\n- **CLI 版本**：\n  - Windows：下载 `oh-my-rime-cli-windows.exe`\n  - Linux：下载 `oh-my-rime-cli-linux`\n  - macOS：下载 `/oh-my-rime-cli-darwin`\n\n### 安全提示\n\n⚠️ **重要提醒**：由于项目未进行代码签名，Windows Defender 和其他杀毒软件可能会误报为病毒，比如 macOS 打开 DMG 报错：\n\n![macOS 上打开 DMG 报错](./assets/img/openDmgWarning.webp)\n\n需要在**安全性**内允许打开，之后打开 App 可能还需要一次：\n\n![macOS 上打开 App 报错](./assets/img/openAppWarning.webp)\n\n这是 Go 编译程序的常见问题，请：\n- 确保从官方 GitHub Releases 页面下载\n- 在杀毒软件中添加信任/白名单\n- 或选择自行编译源码\n\n## 使用方法\n\n### 1. 编译\n\n#### Windows\n在 Windows 下直接编译：\n```sh\n# 推荐在 Windows 命令行下执行\ncd oh-my-rime-cli\ngo build -o oh-my-rime-cli.exe .\n```\n\n#### macOS/Linux\n在 macOS 或 Linux 下编译：\n```sh\ncd oh-my-rime-cli\ngo build -o oh-my-rime-cli .\n```\n\n#### 交叉编译 Windows 版本\n在 macOS/Linux 下编译 Windows 可执行文件：\n```sh\nGOOS=windows GOARCH=amd64 go build -o oh-my-rime-cli.exe .\n```\n\n### 2. 运行\n\n双击或命令行运行编译后的程序，根据提示选择操作和配置目录。\n\n## 部分逻辑\n\n### Windows 注册表支持\n- Windows 下会自动读取注册表 `HKEY_CURRENT_USER\\Software\\Rime\\Weasel` 的 `RimeUserDir` 字段\n- 若注册表不存在或读取失败，自动回退到 `%APPDATA%\\Rime` 目录\n\n\n## 贡献与许可\n- MIT License\n- 欢迎提交 issue 和 PR\n\n## 支持\n\n- [Mintimate's Blog: https://www.mintimate.cn](https://www.mintimate.cn)\n- [Mintimate的爱发电: 加入电圈，支持创造!](https://afdian.net/a/mintimate)\n- [Bilibili：@Mintimate](https://space.bilibili.com/355567627)\n- [Youtube：@Mintimate](https://www.youtube.com/channel/UCI7LLdUGNzkcKOE7grAqCoA)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmintimate%2Foh-my-rime-cli","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmintimate%2Foh-my-rime-cli","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmintimate%2Foh-my-rime-cli/lists"}