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:
@@ -31,7 +31,7 @@ kotlin {
|
||||
}
|
||||
|
||||
distribution {
|
||||
outputDirectory.set(File("$projectDir/../web/"))
|
||||
outputDirectory.set(File("$projectDir/../web2/"))
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
pluginManagement {
|
||||
plugins {
|
||||
kotlin("multiplatform") version "2.1.10"
|
||||
kotlin("multiplatform") version "2.1.20"
|
||||
}
|
||||
repositories {
|
||||
gradlePluginPortal()
|
||||
|
||||
Reference in New Issue
Block a user