Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

请问怎么编写 schemas.json ? #8

Closed
xiaobai9978 opened this issue Mar 2, 2023 · 8 comments
Closed

请问怎么编写 schemas.json ? #8

xiaobai9978 opened this issue Mar 2, 2023 · 8 comments

Comments

@xiaobai9978
Copy link

我想添加我自己的方案进去

image

fatal: 'https://github.com/rime/rime-xiaobai_simp.git/' 鉴权失败
file:///root/my_rime/scripts/util.mjs:3
throw new Error('Command fails.')

@bczhc
Copy link
Contributor

bczhc commented Mar 2, 2023

这是克隆失败了吧。

@bczhc
Copy link
Contributor

bczhc commented Mar 2, 2023

GitHub已停止HTTPS验证。https://docs.github.com/en/get-started/getting-started-with-git/about-remote-repositories#cloning-with-https-urls

如果克隆的是一个私有仓库,也应用SSH验证。

@xiaobai9978
Copy link
Author

他克隆的是 https://github.com/rime/rime-xiaobai_simp.git/
我的方案在 https://github.com/xiaobai9978/rime-xiaobai_simp.git/

不是程序员,看这些东西实在有点困难。。

@bczhc
Copy link
Contributor

bczhc commented Mar 2, 2023

哦,那target里应该写<user>@<repo>,否则就默认rime/下找了。

https://github.com/rime/plum#advanced-usage

@xiaobai9978
Copy link
Author

啊了解,感谢,我再去研究研究

@bczhc
Copy link
Contributor

bczhc commented Mar 2, 2023

抱歉说错了,应该是user/repo@<branch>,也就是xiaobai9978/rime-xiaobai_simp,branch是master的话就可省略。

@bczhc
Copy link
Contributor

bczhc commented Mar 2, 2023

另外,我想问下你在添加这个方案的时候还遇到了什么问题吗,我试了这个方案,plum克隆之后dicts子目录并没有复制到build/librime_native/bin中,导致build/librime_native/bin/rime_console运行失败(在pnpm run schema阶段)。只能手动复制下那个目录。

@eagleoflqj
Copy link
Member

感谢指出,确实写得不够清楚,文档已更新。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants