Now I want to build a native executable. I’ve got ...
# multiplatform
j
Now I want to build a native executable. I’ve got a main function, and I can run it in the JVM from Gradle, but I want a native macosArm64 executable so I can run it directly in a shell without having to mess with java or gradle. Here I’m stuck with the tooling. The
application
plugin is no longer compatible, and I’ve seen the docs on using `binaries{ executable {…``, but that only shows how to do it for jvm targets. How do I create a macosArm64 executable?
🧵 1
j
Thanks, I’ve figured it out. I was trying to use
mainClass
like for the JVM, but what I needed was
entryPoint
. Now it builds & runs!
e
on JVM the function must be named
main
(due to Java) but on other targets the entry point can have any name