https://kotlinlang.org logo
Title
m

Miquel Àngel Román

02/18/2022, 8:07 PM
Hi! I've got a simple app that uses compose desktop. I'm trying to
./gradlew packageDeb
from a macOS in order to later deploy it on a raspberry pi. I've asked @theapache64 but seems like packaging needs to be done on the same platform. Does anybody know a workaround?
b

Big Chungus

02/18/2022, 8:13 PM
Spin up ubuntu vm or pack it inside a docker image
:thank-you: 2
r

Ruckus

02/18/2022, 8:53 PM
If the code is hosted on github I believe you can also use github actions to package for various platforms as well.
:thank-you: 3
t

theapache64

02/18/2022, 8:55 PM
I am using GitHub action in my project. Here’s the yml file
:thank-you: 2
k

Kebbin

02/19/2022, 7:34 AM
Thankyou for this info! That's a few very handy tips. I'll look into the GitHub options for myself.
m

Michael Paus

02/19/2022, 10:56 AM
@theapache64 Just a question. Why do you still use Java 15 and not the latest? Jpackage has seen many bug fixes since then.
t

theapache64

02/19/2022, 1:03 PM
@Michael Paus I think i had some issue with anything 15+ (that was like 6 months ago). 15 just works fine for me now. but I’ll take a look at the latest version. Thanks for noticing
m

Michael Paus

02/19/2022, 1:20 PM
Just an additional warning. In order to be able to use Java 17.0.2 (the current latest) you also have to update Gradle to the latest version (7.3.3) in the gradle-wrapper.properties file. I have to do that each time when I create a new project because the IntelliJ templates are always outdated.
t

theapache64

02/19/2022, 1:40 PM
Ack. Thanks. Just to confirm, CfD works with Java17 without any trouble for you? Were you able to run the binary executable (
deb/jar
) in any linux distros (Ubuntu?) ? I think that was the problem i was facing. I still don’t remember the exact reason why i fall backed to 15
m

Michael Paus

02/19/2022, 1:58 PM
I have no idea about Linux. I work on a Mac.
t

theapache64

02/19/2022, 1:59 PM
Okay, no problem. I’ll take a look