Java-Gaming.org    
Featured games (79)
games approved by the League of Dukes
Games in Showcase (477)
Games in Android Showcase (109)
games submitted by our members
Games in WIP (537)
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  
  How to deploy to Mac, Linux and Windows?  (Read 2999 times)
0 Members and 1 Guest are viewing this topic.
Offline Evanstaul

Senior Newbie





« Posted 2005-08-06 16:57:55 »

Is there an all in one solution to deploy to all three, to create the installer and everything else properly?  If not, how are you implementing all three, with as little change to the code as possible.  Thanks!
Offline blahblahblahh

JGO Coder


Medals: 1


http://t-machine.org


« Reply #1 - Posted 2005-08-06 17:08:39 »

http://javagamesfactory.org - create a user-account (this is to ensure you and only you can edit the details of your game and make updates), go to the games page and click "create new game", supply the screenshot, the icons (if you have any),  the description, etc.

Then upload your JAR files, specify the main-class, specify what JVMs it runs on, test it (!), click the publish button, and voila - a ready-made JNLP file that will install on all 3 platforms with no further effort from you.

Also automatically integrates as many of the standard 3rd party games libs semi-automatically - you just need to choose the lib + version nummber you're game uses, and it will be included in the installer automatically. Does require that someone has already uploaded the lib + specified what it needs; it's a simple process, and I'm working on getting more lib authors to do it, but the actual lib + version you need may not be avialble for this auto-inlcude right now, in which case you'll have to supply them yourself as JAR files.

malloc will be first against the wall when the revolution comes...
Offline Evanstaul

Senior Newbie





« Reply #2 - Posted 2005-08-07 04:42:15 »

Thanks that sounds great!  But maybe this is another topic, if I make it a WebStart then how can I sell it for a profit?  I thought I should make installables for each system and sell the full version,
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline Riven
« League of Dukes »

JGO Overlord


Medals: 757
Projects: 4
Exp: 16 years


Hand over your head.


« Reply #3 - Posted 2005-08-07 11:21:40 »

InstallAnywhere (Now v5.0*) creates installers for a bunch of platforms. You can embed any VM you want with it.

Should be a lot of alternatives ofcourse.

* That version might be very hard to find, but it's free, so definitly worth the hassle!

Hi, appreciate more people! Σ ♥ = ¾
Learn how to award medals... and work your way up the social rankings
Offline swpalmer

JGO Coder




Where's the Kaboom?


« Reply #4 - Posted 2005-08-08 06:18:45 »

If you go the WebStart route, just cripple the game in some way and sell activations codes.

Offline Evanstaul

Senior Newbie





« Reply #5 - Posted 2005-08-10 07:29:45 »

Hm I  kinda look to Cas' Puppygames.net to see what I should do.  It looks like he makes EXEs for Windows, SHs for MAC, then Webstart for Linux.  I thought that Mac could do Webstart easily, so I'm curious why its a shell.  I'm sure he thought it thru, Webstart was a no go except for Linux, which I can only guess because it was too complicated to make an install for.

Also the InstallAnywhere solution looks really good except it costs an arm and leg ...
Offline blahblahblahh

JGO Coder


Medals: 1


http://t-machine.org


« Reply #6 - Posted 2005-08-10 10:30:37 »

I thought that Mac could do Webstart easily

As can Windows. Effortlessly.

Really, he probably wanted to make it a .app bundle (.dmg would be best of all), but couldn't be bothered to go that far Tongue

IIRC he's stated several times that the webstart version (the "LINUX" link) works on mac perfectly well. He's just trying to make it seem as "normal" to the OS user of each OS as possible.

Technically speaking, though, that means:
 - windows: exe
 - OS X: dmg
 - linux: RPM + DEB

...and he's not done the last two. But c.f. his many previous comments on not caring about linux anyway (market far too small, users dont register games).

malloc will be first against the wall when the revolution comes...
Offline swpalmer

JGO Coder




Where's the Kaboom?


« Reply #7 - Posted 2005-08-11 05:38:48 »

Cas does use an .app bundle on the Mac.  Packaged as a .zip since it is easy to do it that way when you don't have a Mac.  Otherwise, Blah is correct.  a .dmg (compressed disk image) with the .app (Application Bundle - i.e.fancy folder) is the preferred method to distribute a Mac app.

Offline blahblahblahh

JGO Coder


Medals: 1


http://t-machine.org


« Reply #8 - Posted 2005-08-11 11:11:20 »

Ah, yes, of course. From the OP's words, I interpreted that the zip contained the game without .app wrapping. Oops!

malloc will be first against the wall when the revolution comes...
Offline Evanstaul

Senior Newbie





« Reply #9 - Posted 2005-08-19 14:21:02 »

What program does Cas use to make the Mac installer?  If I want to package my game for Mac, do I need to use one, or can a Windows program do it?  Too bad I don't have any friends that have a Mac.   Cry
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline swpalmer

JGO Coder




Where's the Kaboom?


« Reply #10 - Posted 2005-08-20 04:25:20 »

You can package for the Mac without a Mac.  Basically an application bundle is just a special directory structure.  You will only need one copy of the mac java launcher binary.  Technically you can grab that from a .zip of Puppygame's Ultratron or somthing - but I don't know what the details are on the legality of distributing and using that binary without actually owning the Mac OS that it came from.  I suspect it is ok...

There are some articles on java.sun.com about making your application more Mac-like.  They explain the structure of an Application bundle.

Here are the details:  http://java.sun.com/developer/technicalArticles/JavaLP/JavaToMac3/index.html

Offline Jeff

JGO Coder




Got any cats?


« Reply #11 - Posted 2005-12-26 21:18:54 »

So just an endordsem,ent.  I';ve been a fan of InstallAnywhere for al ong time.  They used to have a free basic version but I think that went away when Macrovisio bought them Sad

Got a question about Java and game programming?  Just new to the Java Game Development Community?  Try my FAQ.  Its likely you'll learn something!

http://wiki.java.net/bin/view/Games/JeffFAQ
Offline swpalmer

JGO Coder




Where's the Kaboom?


« Reply #12 - Posted 2005-12-28 20:51:39 »

Actually,  I use Install Anywhere at work, and for the Mac version of our product I specifically don't use it.  In general "installers" should be avoided on the Mac.  In the case of InstallAnywhere it wasn't doing anything useful for the Mac environement and was very un-Mac like.

You can get an Ant script to make your Mac Application bundle very easily.  For Linux and Windows I continue to use InstallAnywhere.

Note also that there is a reference implementation of an installer that looks a great deal like InstallAnywhere that was done as part of JSR-38

In fact, I wrote about it here almost exactly two years ago.  http://www.java-gaming.org/cgi-bin/JGNetForums/YaBB.cgi?board=tools;action=display;num=1044023986

The reference implementation can be found here:
http://www.openinstallation.org/

Offline Jeff

JGO Coder




Got any cats?


« Reply #13 - Posted 2005-12-28 23:53:41 »

Cool. Ill have to try it out!

Got a question about Java and game programming?  Just new to the Java Game Development Community?  Try my FAQ.  Its likely you'll learn something!

http://wiki.java.net/bin/view/Games/JeffFAQ
Offline noblemaster

JGO Ninja


Medals: 20
Projects: 10


Age of Conquest makes your day!


« Reply #14 - Posted 2005-12-29 00:35:49 »

Does anybody have experience with Install4J?
http://www.ej-technologies.com/products/install4j/overview.html

It looks pretty cool. It's a multi-platform Java Installer made from Java made for Java. Seems like it can do everything you like. It also integrates into Ant if needed!

Anybody tried?

Offline hvor2

Junior Member




Beyond mind, there is an awareness...


« Reply #15 - Posted 2005-12-29 09:53:47 »

I used launch4j
http://launch4j.sourceforge.net/
But I think it is a cross-platform tool for wrapping Java applications distributed as jars in Windows executables only ...

Pages: [1]
  ignore  |  Print  
 
 
You cannot reply to this message, because it is very, very old.

 

Add your game by posting it in the WIP section,
or publish it in Showcase.

The first screenshot will be displayed as a thumbnail.

CogWheelz (16 views)
2014-08-01 22:53:16

CogWheelz (15 views)
2014-08-01 22:51:43

CopyableCougar4 (18 views)
2014-08-01 19:37:19

CogWheelz (19 views)
2014-07-30 21:08:39

Riven (27 views)
2014-07-29 18:09:19

Riven (16 views)
2014-07-29 18:08:52

Dwinin (14 views)
2014-07-29 10:59:34

E.R. Fleming (42 views)
2014-07-29 03:07:13

E.R. Fleming (13 views)
2014-07-29 03:06:25

pw (44 views)
2014-07-24 01:59:36
Resources for WIP games
by CogWheelz
2014-08-01 18:20:17

Resources for WIP games
by CogWheelz
2014-08-01 18:19:50

List of Learning Resources
by SilverTiger
2014-07-31 18:29:50

List of Learning Resources
by SilverTiger
2014-07-31 18:26:06

List of Learning Resources
by SilverTiger
2014-07-31 13:54:12

HotSpot Options
by dleskov
2014-07-08 03:59:08

Java and Game Development Tutorials
by SwordsMiner
2014-06-14 00:58:24

Java and Game Development Tutorials
by SwordsMiner
2014-06-14 00:47:22
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!