From ea6fd1b2e2ab00bf96b063c196a6f3f6734db6c4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Eloy=20Dur=C3=A1n?= Date: Wed, 27 Aug 2014 19:27:07 +0200 Subject: [PATCH] Revert "[osx] Merge all Info.plist data in one place and ensure there's always a principal class." This reverts commit facf63d0248fbe656e6fa54f8e93c747778f0a0e. --- lib/motion/project/template/osx/config.rb | 26 ++++++++--------------- 1 file changed, 9 insertions(+), 17 deletions(-) diff --git a/lib/motion/project/template/osx/config.rb b/lib/motion/project/template/osx/config.rb index 33ac788c..d06fd58a 100644 --- a/lib/motion/project/template/osx/config.rb +++ b/lib/motion/project/template/osx/config.rb @@ -145,22 +145,14 @@ module Motion; module Project; File.expand_path(File.join('~/Library/Containers', identifier, "Data/rubymotion-repl-#{Time.now.to_i}")) end - def generic_info_plist - super.merge({ + def info_plist_data(platform) + Motion::PropertyList.to_s({ 'NSHumanReadableCopyright' => copyright, 'NSPrincipalClass' => 'NSApplication', 'CFBundleIconFile' => (icon or ''), 'LSMinimumSystemVersion' => deployment_target, 'LSApplicationCategoryType' => (@category.start_with?('public.app-category') ? @category : 'public.app-category.' + @category) - }) - end - - def merged_info_plist - generic_info_plist.merge(dt_info_plist).merge(info_plist) - end - - def info_plist_data(platform) - Motion::PropertyList.to_s(merged_info_plist) + }.merge(generic_info_plist).merge(dt_info_plist).merge(info_plist)) end def strip_args @@ -238,17 +230,17 @@ EOS end main_txt << <