Hi, how to compile my app for Mac Intel?
# compose-desktop
u
Hi, how to compile my app for Mac Intel?
a
tldr you have to run the respective gradle package command using the intel version of the jdk pretty sure I wrote about this a while back. let me have a look
Let me know if it is not clear
u
@Alex Styl Thanks, I have to run the gradle command with rosetta 2
a
no u don't. why would u need rosetta/
tbh i dont really know how rosetta works, but if it makes sense to you for running intel jdk, go nuts 🙂
u
it is not logical that the intel jdk works without rosetta 2 no ?
a
you are probably right. never had to interact directly with rosetta, so it didnt cross my mind
m
I do it like this from bash:
Copy code
(export JAVA_HOME=/Users/mpaus/Downloads/jdk-17.0.9+9/Contents/Home; ./gradlew clean desktopApp:packageReleaseDmg)
This assumes you are on an ARM Mac and you have installed an Intel JDK at the location given to JAVA_HOME above. Implicitly this will then make use of Rosetta2.
2
💯 2
🙏 2