amirrajan / rubymotion-applied

RubyMotion documentation provided by the community. Submit a pull request to the docs for a free one year indie subscription.
Apache License 2.0
49 stars 9 forks source link

Mac OS projects do not use the new local templates directory #109

Open astechishin opened 6 years ago

astechishin commented 6 years ago

Mac OS projects are not using the new local templates directory (located under ~/.rubymotion/rubymotion-templates/motion/project).

astechishin commented 6 years ago

The Rakefile ERB template (osx/files/Rakefile.erb) needs to add the line:

$:.unshift("~/.rubymotion/rubymotion-templates")

After line 2

amirrajan commented 6 years ago

Worth noting that currently this template is the same in both RubyMotion and here (which is why the additional load url isn't there).

astechishin commented 6 years ago

But it should be that same as the others, correct?

amirrajan commented 6 years ago

But it should be that same as the others, correct?

I've only been adding the override if there is actually a difference between the templates that are shipped and the ones in the public repo (as of recent, that was only iOS... now TVOS too).

astechishin commented 6 years ago

Sorry, I thought this was the standard. But I believe this will be necessary for when I add the icon generate for macOS projects (something I have planned for the near future).