News for hackers. Stuff that matters.
Re:Packr – Packages Java apps for distribution on Windows, L... by gizmo686 on Monday May 05, 2014 @12:28AM (#7696933)
>For Linux and Mac (command-line only)

Why is this specific to Linux/Mac and command line. Windows has .bat files which can accomplish the same goal, and every filemanager I have used will recognize a script file and execute it when you try opening it.

Re:Packr – Packages Java apps for distribution on Windows, L... by krakensden on Monday May 05, 2014 @12:47AM (#7696970)
Can you do the trick where the actual binary is embedded in the .sh with batch files? I think that's what he's talking about.
Re:Packr – Packages Java apps for distribution on Windows, L... by mbreese on Monday May 05, 2014 @02:20AM (#7697140)
Exactly... I was talking about cat'ing the JAR file to a shell script. It's a pretty simple ant or maven task. (Or just 'cat script.sh myjar.jar > executable')

I don't know if this works on Windows or not... Never tried - it's been a long time since I've used Windows. And even then, if I needed to do command line work, I would install Cygwin. I don't know why it wouldn't work with batch files though. Do they get a reference to their own name as an argument?

Re:Packr – Packages Java apps for distribution on Windows, L... by girvo on Monday May 05, 2014 @07:40AM (#7697920)
As far as I remember, yes you can, but it required an external tool to do it.