Commit e3a9bd7c authored by qq_38816927's avatar qq_38816927

修改删除机制

parent 3625b36b
......@@ -183,14 +183,20 @@ configurations.all {
}
/** 仅清理 harmonyApp 下 entry 的中间目录,与 publish 无关时可单独执行:`:composeApp:cleanHarmonyAppEntryBuildsAndNativeLibs` */
tasks.register<Delete>("cleanHarmonyAppEntryBuildsAndNativeLibs") {
tasks.register("cleanHarmonyAppEntryBuildsAndNativeLibs") {
group = "harmony"
delete(
doLast {
listOf(
rootProject.file("harmonyApp/entry/build"),
rootProject.file("harmonyApp/entry/libs/arm64-v8a"),
rootProject.file("harmonyApp/entry/libs/x86_64"),
rootProject.file("harmonyApp/entry/src/main/cpp/include"),
)
).forEach { f ->
if (f.exists()) {
f.deleteRecursively()
}
}
}
}
// 为不同类型(debug、release)OHOS构建注册Copy任务并发布到Harmony App目录
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment