mirror of
https://github.com/SlimeVR/SlimeVR-Server.git
synced 2026-11-27 04:16:32 -08:00
Delete target web-gui before copying (#1573)
Co-authored-by: lucas lelievre <[email protected]>
This commit is contained in:
1 parent
e81c9c5b2d
commit
94b2309945
1 file changed
+3
-1
@@ -29,8 +29,10 @@ java {
|
||||
}
|
||||
|
||||
tasks.register<Copy>("copyGuiAssets") {
|
||||
val target = layout.projectDirectory.dir("src/main/resources/web-gui")
|
||||
delete(target)
|
||||
from(rootProject.layout.projectDirectory.dir("gui/dist"))
|
||||
into(layout.projectDirectory.dir("src/main/resources/web-gui"))
|
||||
into(target)
|
||||
if (inputs.sourceFiles.isEmpty) {
|
||||
throw GradleException("You need to run \"pnpm run build\" on the gui folder first!")
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user