Distributing a Java application on macOS

  softwareengineering

I have developed a Java application for both Windows and MacOS. The application requires 2 separate jar files, 1 for the main application and then another is used to download and apply updates.

This will be the first time I have developed something for mac and I’m not too familiar with the OS in general. I was mainly wondering what the standard protocol is for distributing a Java application on mac that requires 2 separate jar files to run? I know you can just send the users the 2 jar files in a zip folder and they can use the application by double clicking the main file but was wondering if there was a more professional way of doing this?

I have looked at things like creating a .pkg file but the things I have looked at have all been for 1 jar file and I don’t know enough about the OS to know if this would work with 2? The main issue being that the updater jar file needs to be able to overwrite the main program file, therefore they need to be separate so it can overwrite the file (or at least I presume they need to be separate and it is the same situation as Windows that an open file cannot be overwritten?).

5

LEAVE A COMMENT