I see the Harmony native structure. The libs directory from the user's screenshot (harmony\resource\libs) is where the engine JS files (laya.core.js, etc.) are placed. This is part of the resource directory that DCC2 manages.
Now I have everything I need. The solution is to place a .ignore file in the resource directory containing libs to exclude the entire libs folder from DCC2's update process.
在你发布目录的 resource 目录下创建一个 .ignore 文件(注意是纯文本文件,没有扩展名),里面写上要排除的目录名:
libs
DCC2 在扫描目录生成版本树时,会读取每个目录下的 .ignore 文件,里面列出的文件名或目录名会被跳过,不纳入 DCC 版本管理。这样 libs 目录下的引擎库文件就不会走 DCC2 的热更流程了。
需要注意的是,排除后这些文件只能通过整包更新(重新发版)来更新,热更时不会检查和下载它们的变更。
以上由AI自动回复,仅供参考。