gosu / releasy

A rake task generator to help with building/packaging/deploying Ruby applications (⚠️ unmaintained)
https://spooner.github.com/libraries/releasy/
MIT License
378 stars 29 forks source link

OSX app fails if application has a main.rb file #44

Open bil-bas opened 11 years ago

bil-bas commented 11 years ago

This is pretty horrid - there is a Main.rb file inside the .app which redirects the program to the script entry file. If that file is also called main.rb, then it will fall in a heap (they will both be in the $LOAD_PATH, you see!).

Temporary workaround: Just call your application something else, like "game.rb" or "my_app.rb" or well, anything else.

daniero commented 10 years ago

I posted to another issue before I saw this one, but this seems to fix it:

https://github.com/Spooner/releasy/issues/42#issuecomment-25287174

bil-bas commented 10 years ago

Regarding the main.rb/Main.rb issue, I actually don't understand why your workaround has any effect.

Your suggestion is to use : Dir.chdir '../Resources/application' instead of: Dir.chdir 'application'

bil-bas commented 10 years ago

The main issue is that I don't have an OSX machine, so I've largely felt along with integrating with the .app and got friends to test it, which is obviously extremely tedious!