JavaPackager icon indicating copy to clipboard operation
JavaPackager copied to clipboard

Why rename the .jar?

Open ryanhamilton opened this issue 2 years ago • 2 comments

Hi, Your tool is working great. Thanks.

One question, for linux why do you rename the .jar?

I'm asking as:

  1. Keeping it .jar in theory makes it still easily runnable for a windows user that downloads the wrong package.
  2. Keeping it .jar, would make it clear to the linux user that it's a java file.

I don't see the benefit to changing the name?

I even tried setting runnableJar = file("app.jar.jar") but it removed both the .jars :)

ryanhamilton avatar Jan 23 '24 09:01 ryanhamilton

Hi @ryanhamilton! Some files are renamed with the generic name "app.*" because some tools (like launch4j) don't support filenames with CHK characters ... maybe this not happens on Linux, but it was implemented as a generic behaviour

fvarrui avatar Feb 25 '24 17:02 fvarrui

Hi, Your tool is working great. Thanks.

You are welcome 😄

fvarrui avatar Feb 25 '24 17:02 fvarrui

I'm closing this issue due to lack of activity. Feel free to reopen it if you need more info

fvarrui avatar Jun 30 '24 15:06 fvarrui