Building for both Mac Intel & M1 using Github Actions #28
Replies: 4 comments 7 replies
-
Hey! Hope you are well! I just added some notes to the README for the project on M1 Mac stuff. AFAIK there are no M1 GitHub Action runners, and I don't think you can have an Intel version of the JDK assemble an M1 version via jlink. The Intel version of the app should run via Rosetta. Might want to grab logs and see what's up with that. I'm going to click the fancy button to convert this to a discussion. :) |
Beta Was this translation helpful? Give feedback.
-
Thanks, I hope everything’s fine with you as well! I’ll see if I can figure out the Rosetta way with my friend who has the M1 machine … it sounds like going back to the PowerPC days! I haven’t looked into the exciting world of JFX / multiplatform for a while, but I suppose there have been no major new developments since April? |
Beta Was this translation helpful? Give feedback.
-
RE Rosetta, yeah, no kidding. Especially with the same name, ha. RE: news, nothing big. At this point I'm not sure how much interest there is in JavaFX vs just using https://www.formdev.com/flatlaf/ to build something in Swing. I know that people do find the modules stuff very confusing. I'm thinking of cloning off this project and making a parallel version that uses the FlatLaF and Swing - I know it would be a lot easier for folks to get started with. Everyone in Java land is waiting for Java 17 + M1 to go final, I think it's Sept 14. I presume that JavaFX will also GA their 17 shortly thereafter. |
Beta Was this translation helpful? Give feedback.
-
Oh yeah, nobody in server land worries about modules. It's more hassle to deal with tweaked or jlinked smaller VMs - just use the regular JDK and call it a day. It's only a factor if you are trying to build a shimmed down JVM. If you don't mind bundling the whole 50-100mb runtime you could skip everything about modules for your own apps. RE: desktop Java (and for that matter, all x-plat desktop frameworks) as far as I can tell the market is just really really small. If you are a big company, you have dedicated teams building Swift for macOS and iOS, .NET for Windows, and Kotlin in Android. Then you probably have a Java team handling the backend with REST APIs and call it a day. At the other end, it's pretty hard to argue with the web as a platform for both desktop and mobile users. Cake to deploy and test. The new flex stuff in CSS plus Bootstrap or Tailwind makes it really easy to build responsive UIs even without a lot of breakpoint fussing. Don't have to worry about giving up 30% to an app store vendor. Also, games are all pretty much built with stuff like Unity or (more rarely) Java frameworks like libGDX. So if you want to build games, you are probably looking at one of those, not JavaFX or Swing. TBH I see the browser runtimes getting a lot better faster than either Swing or JavaFX for most stuff. I see stuff like full 3D modeling tools, sound and video editors in HTML+JS. I dunno - crazy times. |
Beta Was this translation helpful? Give feedback.
-
Hello again!
Just a question this time*: I picked up the dictionary app again after that ordeal of getting it to build on Windows & Mac last spring and because one of the people who want to test it has a new Mac M1. The Intel build fails to run on his machine, as expected.
Do you think that if could work to build both a M1- and an Intel-compatible Mac OS version of the app (next to the Windows- and Linux builds) using the Github Actions, by duplicating the Mac branch and using the M1 native JDK / JFX libraries in that new branch?
Thanks in advance!
I see there have been some changes to the template since I last built it, so I'll first try things out in the existing configuration.
(*) famous last words ... 😨
Beta Was this translation helpful? Give feedback.
All reactions