Hi! I've got a simple app that uses compose deskto...
# compose-desktop
m
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
Spin up ubuntu vm or pack it inside a docker image
🙏 2
r
If the code is hosted on github I believe you can also use github actions to package for various platforms as well.
🙏 3
t
I am using GitHub action in my project. Here’s the yml file
🙏 2
k
Thankyou for this info! That's a few very handy tips. I'll look into the GitHub options for myself.
m
@theapache64 Just a question. Why do you still use Java 15 and not the latest? Jpackage has seen many bug fixes since then.
t
@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
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
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
I have no idea about Linux. I work on a Mac.
t
Okay, no problem. I’ll take a look