mirror of
https://github.com/SlimeVR/SlimeVR-Server.git
synced 2026-04-06 02:01:58 +02:00
Delete target web-gui before copying (#1573)
Co-authored-by: lucas lelievre <loucass003@gmail.com>
This commit is contained in:
@@ -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