系统编译生成的BuildProfile文件是否会打进包中

请问系统编译生成的BuildProfile文件是否会打进包中?另外,本地debug时,如果切换product并且没有手动清除原有的BuildProfile文件的话,是否BuildProfile文件的信息不会更新?

HarmonyOS
2024-06-07 17:21:09
浏览
收藏 0
回答 1
待解决
回答 1
按赞同
/
按时间
fujiang1981

BuildProfile会在打包编译阶段自动生成https://developer.huawei.com/consumer/cn/doc/harmonyos-guides/ide-hvigor-get-build-profile-para-0000001806068821

根据定制多目标构建产物介绍:https://developer.huawei.com/consumer/cn/doc/harmonyos-guides/ide-customized-multi-targets-and-products-guides-0000001731595144在build-profile.json5中的products下面再添加一个目标产物,如

在模块下的build-profile.json5中添加目标free

编译时,会生成不同product的BuildProfile.ets,也会生成不同Hap包

分享
微博
QQ
微信
回复
2024-06-07 22:48:26
相关问题
如何使用脚本编译生成HAP文件
5953浏览 • 1回复 待解决
XamarinStudio如何生成mdb文件?
850浏览 • 1回复 待解决
鸿蒙 | Jar解析xml文件为空值。
5970浏览 • 1回复 待解决
自定义参数BuildProfile问题汇总
362浏览 • 1回复 待解决
如何写har编译脚本?
428浏览 • 1回复 待解决
如何使用deveco 生成app文件
8384浏览 • 1回复 待解决
DevEco Studio 怎么生成 RGB565 bin 文件
1813浏览 • 1回复 待解决
Ctex编译成功了但是没有pdf生成
2410浏览 • 0回复 待解决
是否存在打app工具?
378浏览 • 1回复 待解决