惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
博客园 - Franky
T
Tailwind CSS Blog
Microsoft Azure Blog
Microsoft Azure Blog
The Cloudflare Blog
博客园 - 叶小钗
N
Netflix TechBlog - Medium
罗磊的独立博客
量子位
MyScale Blog
MyScale Blog
A
About on SuperTechFans
Blog — PlanetScale
Blog — PlanetScale
V
Visual Studio Blog
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
GbyAI
GbyAI
B
Blog
腾讯CDC
爱范儿
爱范儿
Recent Announcements
Recent Announcements
有赞技术团队
有赞技术团队
F
Fortinet All Blogs
雷峰网
雷峰网
G
Google Developers Blog
Google DeepMind News
Google DeepMind News

东方星痕

忆时塔 OOM 追凶记 仓颉服务 - 忆时塔 OOM 追凶记 戴森球与光伏文明:一个被忽略的最优解 戴森球与光伏文明:一个被忽略的最优解 | 东方星痕 鸿蒙PC上使用box64运行x86_64鸿蒙SDK编译HAP 鸿蒙PC上使用box64运行x86_64鸿蒙SDK编译HAP | 东方星痕 仓颉语言 Neovim 开发环境配置指南 仓颉语言 Neovim 开发环境配置指南 | 东方星痕 鸿蒙PC融合开发引擎中编译安装Neovim与AstroNvim配置指南 鸿蒙PC融合开发引擎中编译安装Neovim与AstroNvim配置指南 | 东方星痕 鸿蒙PC融合开发引擎架构解析:虚拟机与容器双模式 鸿蒙PC融合开发引擎架构解析:虚拟机与容器双模式 | 东方星痕 MCP-Term:一个未出生即夭折的想法 MCP-Term:一个未出生即夭折的想法 | 东方星痕 鸿蒙PC Matebook Pro上全局安装GIT 鸿蒙PC Matebook Pro上全局安装GIT | 东方星痕 Neovim移植鸿蒙PC:三方库适配实战与挑战解析 Neovim移植鸿蒙PC:三方库适配实战与挑战解析 | 东方星痕 鸿蒙PC Matebook Pro上安装仓颉编译器每日构建版 鸿蒙PC Matebook Pro上安装仓颉编译器每日构建版 | 东方星痕 鸿蒙pc上Vite 7 + Rollup原生模块问题的解决方案 鸿蒙pc上Vite 7 + Rollup原生模块问题的解决方案 | 东方星痕 hypyland实现alt + tab切换到任意工作区的窗口 hypyland实现alt + tab切换到任意工作区的窗口 | 东方星痕 使用泛型设计gorm扩展字段 使用泛型设计gorm扩展字段 | 东方星痕 使用qemu8.0安装龙芯loongarch64版本archlinux 使用qemu8.0安装龙芯loongarch64版本archlinux | 东方星痕 在archlinux aur上提交龙芯loongarch的软件包 在archlinux aur上提交龙芯loongarch的软件包 | 东方星痕
harl-鸿蒙应用开发实机热更新工具
2020-10-25 · via 东方星痕

harl-鸿蒙应用开发实机热更新工具

鸿蒙应用开发实机热更新工具

依赖

  • debug 版本的hi3516镜像(release版本不支持shell)
  • nfs v3
  • serial(串口)
  • dev tools (可以从鸿蒙编译目录/out/ipcamera_hi3516dv300/dev_tools/bin复制到nfs挂载目录)
    • aa (管理APP启动,关闭)
    • bm (安装卸载APP)

USAGE

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
➜ harl.exe
NAME:
harl - Open Harmony OS Dev tools

USAGE:
harl.exe [global options] command [command options] [arguments...]

VERSION:
v0.1.2

COMMANDS:
init, i init .harm.yml
watch, w watch and reload app
install install hap
uninstall uninstall hap
shell open a shell
reboot reboot
help, h Shows a list of commands or help for one command

GLOBAL OPTIONS:
--help, -h show help (default: false)
--version, -v print the version (default: false)
  • 下载应用
  • cd /your-project-dir 切换到项目目录
  • harl init 初始化配置文件
  • harl w 监听项目文件修改
    • 监听时支持输入命令, 若看不到提示符请在调试日志暂停打印时按回车
    • 可以用^run [command name]的方式执行command里定义的脚本
      • 如执行示例配置文件的setup脚本, ^run 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上测试过