Not logged inGosu Forums
Forum back to libgosu.org Help Search Register Login
Up Topic Gosu / Gosu Exchange / Gosu for Mac
- - By King Kadelfek Date 2010-08-04 10:26
Hello, I would like to create a cross platform (Windows / Mac) application.
What is the best way to create a Gosu application for Mac ? People who will use the application will not have Gosu installed.

I'm able to run this sample with the terminal :

require "gosu"
class MyWindow < Gosu::Window
def initialize
super(640, 480, false, 20)
self.caption = 'Hello World!'
end
end

w = MyWindow.new
w.show

I tried to create a Mac application with Platypus, but I did'nt succeed... How can I do this ?
Parent - By jlnr (dev) Date 2010-08-04 11:02
See the wiki, basically you download the .app and put your source code into it—and that's it :)

http://code.google.com/p/gosu/wiki/RubyPackagingOnOsx
- - By King Kadelfek Date 2010-08-09 11:52
It works ! Thank you a lot ! :D
I'm happy to see it's so easy to run a Gosu game on Mac. Thank you for this bundle !

But I noticed something strange : I downloaded "gosu-mac-wrapper-0.7.22.tar.gz" and there are 4 copies of each file in the archive :



I got error messages ("the file still exists") when I extracted the archive.

So, the extracted folder is smaller than the archive. Is it normal ?
Parent - - By jlnr (dev) Date 2010-08-09 12:43
I also experience the strange phenomenon of the .tar.gz being bigger than the .app bundle, but I just blamed it on the old file format. In any case, the Mac Wrapper is not meant to be used on Windows because Mac bundles contain all sorts of strange files that might break if you extract it to a non-Mac file system.
Parent - By King Kadelfek Date 2010-08-09 12:51
Ok, now we know that you can extract the Mac Wrapper on Windows and the same project will be working both on Windows and Mac through VMWare. ;)
I will extract it from Mac the next time.
Parent - By Basic Date 2010-08-10 09:39
I believe it can happen when you have symlinks in your archive, the tar adds them to the archive and when its unzipped it reinstates the symlinks. Although that wouldn't explain it on windows.
Up Topic Gosu / Gosu Exchange / Gosu for Mac

Powered by mwForum 2.29.7 © 1999-2015 Markus Wichitill