更新时间:2024-07-16 GMT+08:00
使用Hvigor构建
使用HarmonyOS进行编译,测试和部署项目。
图形化构建
代码化构建
参考以下代码示例,修改在创建YAML文件中的BUILD部分代码信息。
1 2 3 4 5 6 7 8 9 10 11 12 |
ersion: 2.0 # 必须是2.0 steps: BUILD: - HarmonyOS: name: "Hvigor Build" inputs: command: | npm config set strict-ssl false npm config set registry=https://repo.huaweicloud.com/repository/npm/ npm config set @ohos:registry=https://repo.harmonyos.com/npm/ chmod +x hvigorw ./hvigorw clean assembleApp --no-daemon |
参数名 |
参数类型 |
描述 |
是否必填 |
默认值 |
---|---|---|---|---|
command |
string |
执行命令。 |
是 |
无 |
父主题: 生成构建产物