Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
bil-bas opened this issue Jan 9, 2013 · 3 comments
Open

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

bil-bas opened this issue Jan 9, 2013 · 3 comments
Assignees
Labels
Milestone

Comments

@bil-bas
Copy link
Collaborator

bil-bas commented Jan 9, 2013

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.

@ghost ghost assigned bil-bas Jan 9, 2013
@daniero
Copy link

daniero commented Sep 28, 2013

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

#42 (comment)

@bil-bas
Copy link
Collaborator Author

bil-bas commented Sep 28, 2013

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
Copy link
Collaborator Author

bil-bas commented Sep 28, 2013

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants