This message was deleted.
# kotlin-dsl
s
This message was deleted.
a
I found this here: https://github.com/charleskorn/golang-in-kotlin/blob/3bb22e15bafad8458acc40a7643ac849e882a510/kotlin-app/build.gradle.kts
Copy code
tasks.register("runNativeApp") {
    group = "run"

    when (val architecture = System.getProperty("os.arch")) {
        "aarch64" -> dependsOn("runReleaseExecutableMacosArm64")
        "x86_64" -> dependsOn("runReleaseExecutableMacosX64")
        else -> throw UnsupportedOperationException("Unknown architecture $architecture")
    }
}