Update output directories and Kotlin version, add buildJS task

Modified outputDirectory paths in build scripts and upgraded the Kotlin multiplatform plugin to version 2.1.20. Added a new buildJS task to handle copying files from multiple directories into the web folder. These changes streamline the build process and ensure compatibility with updated tooling.
This commit is contained in:
2025-05-06 18:59:15 +02:00
parent ce353d3113
commit 2cfc8a8201
3 changed files with 15 additions and 3 deletions

View File

@@ -31,7 +31,7 @@ kotlin {
}
distribution {
outputDirectory.set(File("$projectDir/../web/"))
outputDirectory.set(File("$projectDir/../web2/"))
}
}
}

View File

@@ -29,7 +29,7 @@ kotlin {
}
distribution {
outputDirectory.set(File("$projectDir/web/"))
outputDirectory.set(File("$projectDir/web1/"))
}
}
}
@@ -74,6 +74,18 @@ application {
mainClass.set("nl.astraeus.vst.chip.MainKt")
}
tasks.register<Copy>("buildJS") {
duplicatesStrategy = DuplicatesStrategy.INCLUDE
dependsOn("audio-worklet:jsBrowserDevelopmentExecutableDistribution")
dependsOn("jsBrowserDevelopmentExecutableDistribution")
from(layout.projectDirectory.dir("web1"))
into(layout.projectDirectory.dir("web"))
from(layout.projectDirectory.dir("web2"))
into(layout.projectDirectory.dir("web"))
}
/* Hardcoded deploy configuration */
val deployDirectory = "vst-chip.midi-vst.com"

View File

@@ -1,6 +1,6 @@
pluginManagement {
plugins {
kotlin("multiplatform") version "2.1.10"
kotlin("multiplatform") version "2.1.20"
}
repositories {
gradlePluginPortal()