Skip to content

Commit 94b2309

Browse files
Delete target web-gui before copying (#1573)
Co-authored-by: lucas lelievre <loucass003@gmail.com>
1 parent e81c9c5 commit 94b2309

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

server/android/build.gradle.kts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,10 @@ java {
2929
}
3030

3131
tasks.register<Copy>("copyGuiAssets") {
32+
val target = layout.projectDirectory.dir("src/main/resources/web-gui")
33+
delete(target)
3234
from(rootProject.layout.projectDirectory.dir("gui/dist"))
33-
into(layout.projectDirectory.dir("src/main/resources/web-gui"))
35+
into(target)
3436
if (inputs.sourceFiles.isEmpty) {
3537
throw GradleException("You need to run \"pnpm run build\" on the gui folder first!")
3638
}

0 commit comments

Comments
 (0)