Live data from Hacker News

JDeploy – Deploy desktop Java apps as native bundles on Mac, Linux, and Windows

jdeploy.com

61–70 of 133 posts

Re: JDeploy – Deploy desktop Java apps as native bundles on Mac, Linux, and Windows

#61

Congrats on cracking the Mac notarization feature and other nightmare in the Mac release chain!

Hope the author doesn't wind up back here in a few weeks after getting into a fight with Apple over that aspect.

Re: JDeploy – Deploy desktop Java apps as native bundles on Mac, Linux, and Windows

#62

I appreciate the effort, Desktop Java is a viable platform. I however, am not interested in using it due to the NPM aspect. Get ready, this won't be popular but it feels like if my toe were on fire an I dowsed it with gasoline to put out the fire.

> I however, am not interested in using it due to the NPM aspect Some people (here and elsewhere) have expressed similar sentiments about NPM. What would be your preferred alternative? Self hosted? Github releases? Originally I built it to be self hosted, but NPM was just so darned easy to work with and made the process smoother, so I focused on that. NPM is really just a CDN in this context.

If NPM works for you, I’d just stick with it. If I could choose, NPM wouldn’t even be on the list of options I’d consider. Honestly it’s a little weird using NPM, I mean you wouldn’t distribute Java application via CPAN either.

For the Mac: Brew, or just a download from a website.

For Linux: Download from a website or PPAs.

Again if NPM works, just stick with it, even if it weird.

Re: JDeploy – Deploy desktop Java apps as native bundles on Mac, Linux, and Windows

#63

Earlier quoted context omitted.

> Relying on npm seems a bit awkward. 1. npm solves a few problems here. By publishing to npm, the app is instantly available to be downloaded and installed by users. 2. Auto updating. The launcher will automatically check for updates on launch, and download them if any are found so that users are always working with your latest version. I may add support for other CDNs - and originally I just had it so you self host…

I had tried uploaded dmg to github (free hosting) and using github actions for the signing and notarization. Plus update4j for the automatic updates. All worked fine except for the notarization, never cracked this one.

Apologies for how much junk is in here[0], I finally figured out notarization and then lost the will to touch it. I'm planning on circling back to clean it up in a few weeks when that entire pile of stress is a bit more of a distant memory, but hopefully it's helpful? =)...

- [0]: https://github.com/Folcon/fruit-economy/blob/185d49f120bac18...

Re: JDeploy – Deploy desktop Java apps as native bundles on Mac, Linux, and Windows

#64

This is a passion project of mine to make it easier to deploy Java desktop apps. I'm very happy with the result, as IMO, the process is orders of magnitudes simpler than what we had before. Some features include: - Native installers for Mac, Windows, and Linux - Build native bundles for all platforms from any platform (e.g. You don't need Mac to make a Mac app. You don't need Windows to make a Windows app, etc..) - A…

A bugbear of mine having to use a couple of Java apps on my Mac is the non native window support.

Do JBundle'd apps support native full screen size (not just expanding to fill the size of the screen, which allows other app windows to appear in front/behind), and native keyboard shortcut behaviour?

Re: JDeploy – Deploy desktop Java apps as native bundles on Mac, Linux, and Windows

#65

This looks very impressive. "You must have a Mac to make a Mac binary" has always been an annoying shortcoming of jpackage, especially for smaller or independent developers. Congrats, and thanks. This is going to be very useful for many developers.

I've used github actions to build jpackage Mac binaries for open source software.

Re: JDeploy – Deploy desktop Java apps as native bundles on Mac, Linux, and Windows

#67

This is a passion project of mine to make it easier to deploy Java desktop apps. I'm very happy with the result, as IMO, the process is orders of magnitudes simpler than what we had before. Some features include: - Native installers for Mac, Windows, and Linux - Build native bundles for all platforms from any platform (e.g. You don't need Mac to make a Mac app. You don't need Windows to make a Windows app, etc..) - A…

This looks very cool. What Java framework(Swing, FX etc) would you recommend for a desktop Java app?

FWIW, there's JetBrains's JetBrainsRuntime project [1] containing Swing patches for eg HiDPI support and other things. Haven't worked with it, nor do I have a stake in it; just mentioning it because JetBrain are one of the few companies delivering kick-ass, commercially successful, mainstream desktop software using Java/Swing today.

[1]: https://github.com/JetBrains/JetBrainsRuntime

Re: JDeploy – Deploy desktop Java apps as native bundles on Mac, Linux, and Windows

#68
I use jpackage to build native bundles for JOSM, an editor for the OpenStreetMap project. As others have pointed out, one of the biggest shortcomings is that you have to use a Mac to build a Mac bundle, etc.

https://github.com/JOSM/josm/blob/master/native/macosx/macos... is my macos script, https://github.com/JOSM/josm/blob/master/native/windows/win-... is the windows script, and for how it moves, see https://github.com/JOSM/josm/blob/master/.github/workflows/a...

Re: JDeploy – Deploy desktop Java apps as native bundles on Mac, Linux, and Windows

#69
I'm getting an error about the SwingSet2 app being damaged when opening on macOS.

Looking at it with Signet, I get:

SwingSet2 Installer-1.0.5_255W/SwingSet2 Installer-1.0.5_255W.app error -67023 invalid resource directory (directory or signature have been modified)

The JavaFX Ensemble 8 Installer-1.0.8_255X app opens, but the experience is very un-Mac-like: the app is really a custom installer, and it places an app in `~/Applications/jDeploy Apps` instead of the expected /Applications. The resulting application then doesn't have the expected

The Unarchiver didn't like the JavaFX Ensemble 8 Installer-1.0.8_255X.tar.gz file, complaining about not being able to extract the Resources directory.

Re: JDeploy – Deploy desktop Java apps as native bundles on Mac, Linux, and Windows

#70

Earlier quoted context omitted.

This looks very cool. What Java framework(Swing, FX etc) would you recommend for a desktop Java app?

FWIW, there's JetBrains's JetBrainsRuntime project [1] containing Swing patches for eg HiDPI support and other things. Haven't worked with it, nor do I have a stake in it; just mentioning it because JetBrain are one of the few companies delivering kick-ass, commercially successful, mainstream desktop software using Java/Swing today. [1]: https://github.com/JetBrains/JetBrainsRuntime

Is there a reason these are not getting backported to OpenJDK? I know that jetbrains do contribute a bit, but I feel like their model of having way out of date jdks shipped (offering worse performance then available) is not a good one. (They just recently switched to 11, and was still using the old concurrentms GC, over which G1 runs circles, let alone ZGC)
Post reply on HN