harl-鸿蒙应用开发实机热更新工具
依赖
- debug 版本的hi3516镜像(release版本不支持shell)
- nfs v3
- serial(串口)
- dev tools (可以从鸿蒙编译目录
/out/ipcamera_hi3516dv300/dev_tools/bin复制到nfs挂载目录)- aa (管理APP启动,关闭)
- bm (安装卸载APP)
USAGE
1 | ➜ harl.exe |
- 下载应用
cd /your-project-dir切换到项目目录harl init初始化配置文件harl w监听项目文件修改- 监听时支持输入命令, 若看不到提示符请在调试日志暂停打印时按回车
- 可以用
^run [command name]的方式执行command里定义的脚本- 如执行示例配置文件的setup脚本,
^run setup
- 如执行示例配置文件的setup脚本,
- 目前命令只支持在项目目录执行
配置文件
.harl.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30 watch:
excludes:
- .gradle
- .idea
- gradle
- entry/build
- entry/node_modules
includes:
- .css
- .hml
- .js
- .hap
- .json
delay: 100
nfs:
ldir: H:/bin
rdir: /nfs
shell:
com: COM5
command:
setup:
- dhclient eth0
- mkdir /nfs
- mount 192.168.3.12:/nfsshare /nfs nfs
kill:
- cd /nfs
- ./aa terminate -p top.ystyle.ohos.js.testapp
start:
- cd /nfs
- ./aa start -p top.ystyle.ohos.js.testapp -n default
支持情况
- 只支持windows
- 只测试过liteWearable项目改的smartVision
- 只在hi3516d上测试过