Not logged inGosu Forums
Forum back to libgosu.org Help Search Register Login
Up Topic Gosu / Gosu Exchange / Signing games for the Mac App Store
- - By benko Date 2011-06-18 13:54
Hi, is there a way to sign with one's dev certificates a game made with Ruby/Gosu, so it can be uploaded to the Mac App Store? I'm sorry if I'm asking something obvious, but I've only used Xcode for Objective C/C++ projects...

Thanks!
Parent - - By jlnr (dev) Date 2011-06-18 14:18
I'd just read this link today and was tempted to buy a MAS account to try the same with Ruby/Gosu: http://astonj.com/tech/how-to-submit-your-macruby-app-to-the-mac-app-store/

I am not sure if my slightly Frankensteiny .app wrapper is MAS compatible. For one thing, all the binaries are fat and contain a PPC part. Also the menu bar is a bit messy. How tough are the MAS restrictions?

Ruby/Gosu also supports MacRuby now, but I have never tested anything beyond the Tutorial.rb script. MacRuby may allow you to precompile your game into a standard Mac binary, which is cool either way.

If anything does not work, let me know — the MAS is definitely a place where I want to go with Gosu too.
Parent - By benko Date 2011-06-22 21:16
Thanks! I'll try to install macruby via rvm and see if gosu works well with some sample code I have.
Parent - - By benko Date 2011-06-25 10:39 Edited 2011-06-25 11:00
Does anyone else have problems with requiring the Gosu gem from MacRuby?

normandy:Gosu benko$ irb
irb(main):001:0> require 'rubygems'
=> true
irb(main):002:0> require 'gosu'
LoadError: dlopen(/Users/benko/.rvm/gems/macruby-0.10/gems/gosu-0.7.9.1-universal-darwin/lib/gosu.bundle, 9): no suitable image found.  Did find:
  /Users/benko/.rvm/gems/macruby-0.10/gems/gosu-0.7.9.1-universal-darwin/lib/gosu.bundle: no matching architecture in universal wrapper - /Users/benko/.rvm/gems/macruby-0.10/gems/gosu-0.7.9.1-universal-darwin/lib/gosu.bundle


It's weird, because the version should be attached to the name of the bundle file...

Thanks

EDIT: OK, this is not something exclusive of MacRuby, it's happening to me on other implementations of Ruby too. I'm using RVM to manage different versions of Ruby in a new machine, and I cannot require gosu in any of them :( Other gems work properly, so I don't know what's wrong...
Parent - By jlnr (dev) Date 2011-06-26 13:08 Edited 2011-06-26 13:17
You need to pass "--platform ruby", otherwise gem will try to use the precompiled gems for C Ruby. But with Gosu 0.7.33, you would also need to install boost on your system, so I've attached a WIP build of Gosu 0.7.34. Just install this gem directly and let me know if it works. It shouldn't have any dependencies other than OS X itself.

Edit: Meh, I get a crash in the Tutorial that I don't get with C Ruby and the same gem. Seems Font/Image.from_text has some problem...still, it would be helpful to know if you can install it :)
Attachment: gosu-0.7.34.gem (315k)
Parent - By jlnr (dev) Date 2011-07-04 11:55
The file above was crashy not just on MacRuby, I could run the Tutorial without problems with the one attached here.
Attachment: gosu-0.7.34.gem (315k)
Up Topic Gosu / Gosu Exchange / Signing games for the Mac App Store

Powered by mwForum 2.29.7 © 1999-2015 Markus Wichitill