RatzzFatzz / MKVAudioSubtitleChanger

CLI tool to recursively change the default subtitle and audio lane of mkv files.
GNU General Public License v3.0
20 stars 0 forks source link

Single-file, Self-Contianed exe for Windows #53

Open ALIENQuake opened 3 weeks ago

ALIENQuake commented 3 weeks ago

Hi,

Modern Java allows for creating Single-file and Self-Contianed executable so the user doesn't need to install Java in order for the tool to work.

Can you provide such executable?

Thanks for nice app!

RatzzFatzz commented 2 weeks ago

Hey,

I looked into such a single-file self-contained executable. jpackage can be used to create an executable for all common operating systems to install the application. These seems to be really useful when it's an app with a GUI which launches on start up or a server running until stopped. My app takes in command line parameters, executes the configured task and terminates.

It's probably possible to get the application working with such an installer, but what would require even more knowledge of CLI than my documented way.

Here is the command to create such executable for documentation reasons:

jpackage --input target --name MKVAudioSubtitleChanger --main-jar MKVAudioSubtitleChanger-3.0.2.jar --main-class at.pcgamingfreaks.mkvaudiosubtitlechanger.Main --type exe

I will look into GraalVM native images, because this seems to be more applicable to your use case.