Not logged inGosu Forums
Forum back to libgosu.org Help Search Register Login
Up Topic Gosu / Gosu Exchange / Packaging a game (revisited)
- - By jeremywoertink Date 2012-08-05 17:49
I've searched throughout the forum, and found a few posts on packaging a game for different systems, but I'm having some issues, and couldn't find answer.

I would like to package my game into a exe for windows, and dmg for osx.

I read https://github.com/jlnr/gosu/wiki/Ruby-Packaging-on-Windows, but the problem I ran into is that ocra has windows support only. I don't have a windows machine to run this, and when I run on my mac, I get the following error:

~/Development/gosu/pcotm$ ocra --help
/Users/jeremy/.rvm/gems/ruby-1.9.3-p194@pcotm/gems/ocra-1.3.0/bin/ocra:18:in quote': can't convert NilClass to String (TypeError)
  from /Users/jeremy/.rvm/gems/ruby-1.9.3-p194@pcotm/gems/ocra-1.3.0/bin/ocra:18:in
<class:Pathname>'
  from /Users/jeremy/.rvm/gems/ruby-1.9.3-p194@pcotm/gems/ocra-1.3.0/bin/ocra:8:in <module:Ocra>'
  from /Users/jeremy/.rvm/gems/ruby-1.9.3-p194@pcotm/gems/ocra-1.3.0/bin/ocra:4:in
<top (required)>'
  from /Users/jeremy/.rvm/gems/ruby-1.9.3-p194@pcotm/bin/ocra:19:in load'
  from /Users/jeremy/.rvm/gems/ruby-1.9.3-p194@pcotm/bin/ocra:19:in
<main>'
  from /Users/jeremy/.rvm/gems/ruby-1.9.3-p194@pcotm/bin/ruby_noexec_wrapper:14:in eval'
  from /Users/jeremy/.rvm/gems/ruby-1.9.3-p194@pcotm/bin/ruby_noexec_wrapper:14:in
<main>'

Also, in this guide it mentions the "fmod.dll". Where do I find this file so I could include it? Does ocra generate this, or is this a generic windows file? Is there another gem out there where I can easily create an exe file using my mac?

Going through https://github.com/jlnr/gosu/wiki/Ruby-Packaging-on-OS-X guide, the instructions seem to be pretty straight forward. My problem with this is that opening the contents shows all of the ruby files. It would be nothing to just open the contents and get all of the source code for the game. Is there another option for packaging a game into just a single file?

On a side note, has anyone used Shoes.rb? This program has a packing system that's pretty clean and creates a simple executable for linux, mac, or windows through it's program interface. I have no idea how it works, but maybe that's an option?

Thanks for the help.

~Jeremy
Parent - - By lol_o2 Date 2012-08-05 19:12
fmod.dll is no longer used and there's no need to find any dlls, because Ocra packs them automatically.
Parent - By jeremywoertink Date 2012-08-05 19:21
well that's good to know. Since Ocra only works on windows, is there something similar for OSX? I don't want to do a .app where all the source code is exposed.
Parent - - By Spooner Date 2012-08-05 20:31
Releasy allows you to build for any OS on any OS, without a compiler :) It isn't as friendly as it could be yet, but I am (when you have problems). I recommend finding me on the #gosu channel at irc.freenode.org
Parent - - By jeremywoertink Date 2012-08-06 00:23
yeah, I found your repo for releasy. I'm actually running into a few issues. Do you prefer just using IRC?
Parent - By Spooner Date 2012-08-06 00:39
IRC has a bit faster turnaround, but if you want to do stuff here it is fine. IRC would probably resolve the issue more quickly and well, Releasy is a bit fickle if you don't configure it perfectly.
Parent - By Spooner Date 2012-08-05 20:35
Regarding hiding source code or assets, forget it (with CRuby). You can generate a single file executable (Ocra/Releasy for Windows built only on windows), but it takes a couple of extra seconds to start up and is trivial to get at the source files and assets if a user wants to. I don't even recommend using that method at all.
Up Topic Gosu / Gosu Exchange / Packaging a game (revisited)

Powered by mwForum 2.29.7 © 1999-2015 Markus Wichitill