Java-Gaming.org Hi !
Featured games (90)
games approved by the League of Dukes
Games in Showcase (741)
Games in Android Showcase (225)
games submitted by our members
Games in WIP (823)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
 
    Home     Help   Search   Login   Register   
Pages: [1]
  ignore  |  Print  
  Linux builds  (Read 1518 times)
0 Members and 1 Guest are viewing this topic.
Online FabulousFellini
« Posted 2017-09-06 22:34:45 »

Is there a certain type of file that is the industry standard for games on Linux?  Like Windows(.exe) and Mac(.app)?  And with that, does anyone know how to wrap the jar for linux, similar to what Launch4J does for Windows?  Basically I just want an icon on the desktop for Linux, instead of the standard coffee cup.

-FabulousFellini
www.fabulousfellini.com
Offline zngga
« Reply #1 - Posted 2017-09-07 02:37:02 »

I hate to say this, because it's kind of a "well... thanks for nothing!" type of answer but.. Linux doesn't have a unified way of doing this. My experience is limited to Debian based distros and the way they do it is to have a .desktop file somewhere. And that somewhere is also up in the air depending on desktop environment. But here is a link to setting up a desktop file for modern versions of Ubuntu running the Unity environment:

https://help.ubuntu.com/community/UnityLaunchersAndDesktopFiles

Hope this helps a little.

My code never has bugs... it just develops unexpected features!
Offline princec

« JGO Spiffy Duke »


Medals: 975
Projects: 3
Exp: 16 years


Eh? Who? What? ... Me?


« Reply #2 - Posted 2017-09-07 09:13:32 »

I've always just distributed a tar.gz and left the buggers to sort it out for themselves. The tar.gz always contains a complete OpenJDK VM, and a file with a .sh extension that's executable.

Cas Smiley

Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline nsigma
« Reply #3 - Posted 2017-09-07 09:43:26 »

I wouldn't bother with reading anything that is Unity specific since Unity is dead!  Wink

You could look at packaging as a .deb file which is really not that difficult - I wrote a blog post on this ages ago.

However, if you want something self-contained, cross-distro and a little friendlier than @princec's tar.gz then have a look at AppImage.  There's also Snappy and Flatpak, which are likely to be the way of the future, but probably not something to use right now.  Yes, it's Linux, expect at least 3 ways to do anything!  Grin  However, at least they're all aiming to work across the board.

Praxis LIVE - hybrid visual IDE for (live) creative coding
Online FabulousFellini
« Reply #4 - Posted 2017-09-07 18:45:30 »

Ok thanks guys.  I'll look into these options and see what I think would be the best route to take.

-FabulousFellini
www.fabulousfellini.com
Offline gouessej
« Reply #5 - Posted 2017-09-09 08:55:44 »

Hi

I created a tool to generate native self-contained application bundles for GNU Linux, OS X and Windows, maybe it can help, it supports several formats under GNU Linux including tar.gz, DEB and RPM:
http://tuer.sourceforge.net/en/documentation/#jndt

Julien Gouesse | Personal blog | Website | Jogamp
Offline nikolat

Junior Newbie


Medals: 1



« Reply #6 - Posted 2017-09-10 17:28:29 »

To get a launch4j-like exe for linux you can concat your jar with a shell script.
More information  here:
 https://github.com/maynooth/CS210/wiki/Convert-Java-Executable-to-Linux-Executable.
You can check  this  app linux version was built this way.
Offline gouessej
« Reply #7 - Posted 2017-09-10 19:43:02 »

nikolat, your suggestion just allows to write a script to run a JAR, it relies on the JRE installed on the system, it doesn't help a lot. Moreover, it advises to use Eclipse to create a JAR whereas it's a lot less flexible and capable than a build tool like Ant.

Julien Gouesse | Personal blog | Website | Jogamp
Offline nikolat

Junior Newbie


Medals: 1



« Reply #8 - Posted 2017-09-11 20:09:01 »

Quote
nikolat, your suggestion just allows to write a script to run a JAR
Not only to write a script, you will get an executable """similar to launch4j""" executables as FabulousFellini asked above.

Quote
it relies on the JRE installed on the system, it doesn't help a lot
It is up to you to call any JRE you want (embedded in your package or not).

Quote
Moreover, it advises to use Eclipse to create a JAR
Please check. The build process is not the point. It is about creating a native executable binary. Eclipse is just recommended for the packaging and I agree with you: automating the build process is better.


Pages: [1]
  ignore  |  Print  
 
 

 
Ecumene (110 views)
2017-09-30 02:57:34

theagentd (146 views)
2017-09-26 18:23:31

cybrmynd (245 views)
2017-08-02 12:28:51

cybrmynd (241 views)
2017-08-02 12:19:43

cybrmynd (241 views)
2017-08-02 12:18:09

Sralse (254 views)
2017-07-25 17:13:48

Archive (872 views)
2017-04-27 17:45:51

buddyBro (1024 views)
2017-04-05 03:38:00

CopyableCougar4 (1577 views)
2017-03-24 15:39:42

theagentd (1373 views)
2017-03-24 15:32:08
List of Learning Resources
by elect
2017-03-13 14:05:44

List of Learning Resources
by elect
2017-03-13 14:04:45

SF/X Libraries
by philfrei
2017-03-02 08:45:19

SF/X Libraries
by philfrei
2017-03-02 08:44:05

SF/X Libraries
by SkyAphid
2017-03-02 06:38:56

SF/X Libraries
by SkyAphid
2017-03-02 06:38:32

SF/X Libraries
by SkyAphid
2017-03-02 06:38:05

SF/X Libraries
by SkyAphid
2017-03-02 06:37:51
java-gaming.org is not responsible for the content posted by its members, including references to external websites, and other references that may or may not have a relation with our primarily gaming and game production oriented community. inquiries and complaints can be sent via email to the info‑account of the company managing the website of java‑gaming.org
Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines | Managed by Enhanced Four Valid XHTML 1.0! Valid CSS!