Soo even though this is java, skiko is not & I nee...
# compose-desktop
u
Soo even though this is java, skiko is not & I need to build it separately for macos, windows, linux, right? Is there an easy way of doing this, other than having/renting a dedicated machine available to build on? (Maybe the skiko bit is prebuilt somewhere and I only need to include it or something like that .. ?)
e
skiko is a dependency of compose (!android) and is published on maven central, same as compose multiplatform
u
but .. okay now I noticed gradle tasks per platform were added however, that builds an "app" I have to install -- what if I'm a cli? I was expecting to get a
.jar
I can run from terminal (and such tasks is only
..ForCurrentOS
or rather I need it to be launchable from terminal, as current directory is parameter to the app. Should I rework that as 2 things? i.e. a shell script which then launches the "real" OS app?
a
There’s already a launcher and you can run it from the command line, and pass it arguments
m
You can use Conveyor. It can cross-build packages for every OS, and those come with a launcher that will pass CLI args. You can also add CLI tools to the path (on Windows and Linux, on macOS .app folders are never in the path by default, however you can use
open -a foo.app arg1 arg2
(disclosure: Conveyor is my product, it's free for local dev and open source projects)
m
If you have your code on GitHub, you can just configure a few corresponding GitHub runners for each platform you need. You can also easily make a cross-build from macOS/ARM to macOS/Intel. That's needed because there are no macOS/Intel GitHub runners anymore, as far as I know.