README.md 3.9 KB
Newer Older
木偶 已提交
1 2 3
<div align= "center">
<img align="center" src="https://user-images.githubusercontent.com/21073039/123022701-c3848180-d408-11eb-86ec-7727f355ea96.png" />
</div>
M
init  
muwoo 已提交
4

木偶 已提交
5 6 7 8 9 10 11 12 13 14 15
# Rubick

<p>
 <a href="https://github.com/clouDr-f2e/rubick/releases/tag/v0.0.1-beta">
    <img alt="release" src="https://img.shields.io/badge/release-v0.0.1-brightgreen" />
 </a>
 <a href="https://github.com/clouDr-f2e/rubick/blob/master/LICENSE">
    <img alt="npm" src="https://img.shields.io/github/license/clouDr-f2e/rubick" />
 </a>
</p>

木偶 已提交
16 17

基于 electron 的工具箱,媲美 utools的开源插件,已实现 utools 大部分的 API 能力,所以可以做到无缝适配 utools 开源的插件。
木偶 已提交
18 19 20
之所以做这个工具箱一方面是 utools 本身并未开源,但是公司内部的工具库又无法发布到 utools 插件中,所以为了既要享受 utools 生态又要有定制化需求,我们自己参考 utools 设计,做了 Rubick.

Rubick(拉比克) 是 dota 里面的英雄之一,其核心技能是插件化使用其他英雄的技能,用完即走。非常符合本工具的设计理念,所以取名 Rubick。
M
init  
muwoo 已提交
21

木偶 已提交
22
## 安装包
木偶 已提交
23
* [Rubick Mac OS V0.0.2-beta.1](https://github.com/clouDr-f2e/rubick/releases/tag/v0.0.2-beta.1)
木偶 已提交
24
* [TODO: Rubick Windows V0.0.2-beta.1](https://github.com/clouDr-f2e/rubick/tree/feat-win)
木偶 已提交
25 26

## 支持能力
木偶 已提交
27
- [x] 支持 uTools 90% API。可直接按照 uTools 文档开发 Rubick 插件
木偶 已提交
28
- [x] 支持 uTools github 开源插件。
木偶 已提交
29
- [x] 支持远程下载安装插件,支持插件开发者模式
木偶 已提交
30 31 32 33 34 35 36 37
- [x] 支持插件分离
- [x] 支持系统命令取色、截屏、帮助
- [x] 支持超级面板,长按右击呼出
- [x] 支持全局快捷键设置
- [x] 支持搜索本地已安装 app 或 偏好设置
- [ ] 支持 Windows
- [ ] 支持 Linux

木偶 已提交
38 39 40 41

![QQ20210705-210753](https://user-images.githubusercontent.com/21073039/124477360-8770f980-ddd6-11eb-8dc3-ba318223697f.gif)


M
init  
muwoo 已提交
42

木偶 已提交
43
## 使用问题
木偶 已提交
44
依赖于 `robotjs` dev 环境运行请在 `install` 后执行 `npm run rebuild`
木偶 已提交
45

木偶 已提交
46 47 48 49 50 51
## 目前支持能力
### 加载utools生态插件
`github` 上开源的 斗图 插件举例,要加载斗图插件,只需要将代码 clone下来后,复制其 `plugin.json` 进入搜索框即可使用

斗图:https://github.com/vst93/doutu-uToolsPlugin

木偶 已提交
52
<img src=https://p9-juejin.byteimg.com/tos-cn-i-k3u1fbpfcp/cba1eb758180433294c93b59724adefd~tplv-k3u1fbpfcp-watermark.image width=500 />
木偶 已提交
53 54 55 56 57 58 59 60 61

### 超级面板
长按鼠标右键,即可呼起超级面板,可以根据当前鼠标选择内容,匹配对应插件能力。比如当前选择图片后长按右击,则会呼起上传图床插件:

![image.png](https://p1-juejin.byteimg.com/tos-cn-i-k3u1fbpfcp/1706cc730f1f46078cb700a445211317~tplv-k3u1fbpfcp-watermark.image)

### 模板
为了更贴合 `uTools` 的插件能力,需要实现模板功能,模板即是一个内置 UI 样式的功能插件。

木偶 已提交
62
<img src=https://p1-juejin.byteimg.com/tos-cn-i-k3u1fbpfcp/0b113ad547974699b9c73c28bc09b9b1~tplv-k3u1fbpfcp-watermark.image width=500 />
木偶 已提交
63 64 65

### utools 自带的系统命令
#### 取色
木偶 已提交
66
基于 `robot.js` 以及 `iohook` 实现。未使用 C++ 扩展。
木偶 已提交
67

木偶 已提交
68
![image](https://p6-juejin.byteimg.com/tos-cn-i-k3u1fbpfcp/3036ae85bf3549fc8bbbe2926ecbad55~tplv-k3u1fbpfcp-watermark.image)
木偶 已提交
69 70 71

#### 截屏

木偶 已提交
72 73
<img src=https://p6-juejin.byteimg.com/tos-cn-i-k3u1fbpfcp/18023dab52e1420c9e87362cefddb2a1~tplv-k3u1fbpfcp-watermark.image width=500 />

木偶 已提交
74 75 76

#### 全局快捷键

木偶 已提交
77
<img src=https://p9-juejin.byteimg.com/tos-cn-i-k3u1fbpfcp/62cc424eacac4c9eb178f0e055e87d9a~tplv-k3u1fbpfcp-watermark.image width=500 />
M
init  
muwoo 已提交
78

木偶 已提交
79
### 最后
木偶 已提交
80 81 82 83
对本项目有兴趣或者想要交流学习的同学可以扫码加下面的微信,备注 rubick,帮助我们更好的成长:

![image](https://user-images.githubusercontent.com/21073039/127327603-9796f246-ee4b-4950-a69d-ce3205ec9569.png)

M
init  
muwoo 已提交
84

木偶 已提交
85 86 87
## License
This project is licensed under the MIT License - see the [LICENSE.md](https://github.com/clouDr-f2e/rubick/blob/master/LICENSE) file for details.